ExperimentSetting

class pyquil.operator_estimation.ExperimentSetting(in_operator, out_operator)[source]

Input and output settings for a tomography-like experiment.

Many near-term quantum algorithms take the following form:

  • Start in a pauli state
  • Prepare some ansatz
  • Measure it w.r.t. pauli operators

Where we typically use a large number of (start, measure) pairs but keep the ansatz preparation program consistent. This class represents the (start, measure) pairs. Typically a large number of these ExperimentSetting objects will be created and grouped into a TomographyExperiment.