expval
Method of ComplexMPO.
expval(const ComplexMPS operator) -> complex
Compute the expectation value of a quantum operator in state with Complex values.
note
This function computes . Only valid with open boundary condition MPS and MPO.
Parameters
- operator: The matrix product operator (MPO) representing the quantum operator.
Returns
The expectation value as a scalar.