↧
Answer by Craig Gidney for Computing expectation value of a Pauli string on...
You can use stim.TableauSimulator.peek_observable_expectation to compute the expected value of Pauli product observables without affecting the simulator's state:import stims =...
View ArticleComputing expectation value of a Pauli string on stabilizer states
I need some help on stim, where I'm trying to compute expectation values of Pauli strings. Hopefully I did not overlook on the documentation an implementation of this method.Problem StatementGiven a...
View Article