seemps.expectation.all_expectation1#
- seemps.expectation.all_expectation1(state, O)[source]#
Vector of expectation values \(v_i = \langle\psi|O_i|\psi\rangle\) of local operators acting on individual sites of the MPS.
- Parameters:
- state: MPS
State \(\psi\) onto which the expectation values are computed.
- 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.
- Returns:
Vector
Numpy array of expectation values.