expval
Method of RealMPO.
expval(const RealMPS operator) -> real
Compute the expectation value of a quantum operator in state with Real 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.