ExperimentSetting¶
-
class
forest.benchmarking.observable_estimation.
ExperimentSetting
(in_state: forest.benchmarking.observable_estimation.TensorProductState, observable: pyquil.paulis.PauliTerm)¶ Input and output settings for an ObservablesExperiment.
Many near-term quantum algorithms and QCVV protocols take the following form:
- Start in a pauli state
- Do some interesting quantum circuit (e.g. prepare some ansatz)
- Measure the output of the circuit w.r.t. expectations of Pauli observables.
Where we typically use a large number of (start, measure) pairs but keep the quantum circuit program consistent. This class represents the (start, measure) pairs. Typically a large number of these
ExperimentSetting
objects will be created and grouped into aObservablesExperiment
.