matrix_element
Method of ComplexMPS.
matrix_element(const ComplexMPO operator, const ComplexMPS ket) -> complex
Compute the matrix element of a quantum operator between two MPS states with Complex values.
Parameters
- operator: The matrix product operator (MPO) representing the quantum operator.
- ket: The right (ket) MPS state.
Returns
The matrix element as a scalar value.