Skip to content

Implement function to compute expectation value

This is probably as easy as to pull expectation_value_z = expect(m_mps,"Sz") out of finalize_mps(), but we don't want the expectation value computation to only be done at finalize/teardown.