tnpy.matrix_product_state.MatrixProductStateMeasurements
1.4. tnpy.matrix_product_state.MatrixProductStateMeasurements#
- class tnpy.matrix_product_state.MatrixProductStateMeasurements(mps)[source]#
Bases:
object
- Parameters
mps (MatrixProductState) –
Methods
__init__
(mps)expectation_value
([mpo])- expectation_value(mpo=None)[source]#
- Parameters
mpo (Optional[tnpy.operators.MatrixProductOperator]) –
- Return type
float