seemps.state.CanonicalMPS.expectation1# method CanonicalMPS.expectation1(O, site)# Compute the expectation value \(\langle\psi|O_i|\psi\rangle\) of an operator O acting on the i-th site Parameters: stateMPSQuantum state \(\psi\) used to compute the expectation value. OOperatorLocal observable acting onto the i-th subsystem iintIndex of site, in the range [0, state.size) Returns: float | complexExpectation value.