seemps.state.MPS.all_expectation1#
method
- MPS.all_expectation1(operator)[source]#
Vector of expectation values of the given operator acting on all possible sites of the MPS.
- Parameters:
- operator
Operator
|list
[Operator
] If operator is an observable, it is applied on each possible site. If it is a list, the expectation value of operator[i] is computed on the i-th site.
- operator
- Returns:
Vector
Numpy array of expectation values.