measure_observables¶
-
pyquil.operator_estimation.
measure_observables
(qc, tomo_experiment, n_shots=None, progress_callback=None, active_reset=None, symmetrize_readout='None', calibrate_readout='plus-eig', readout_symmetrize=None)[source]¶ Measure all the observables in a TomographyExperiment.
- Parameters
qc (
QuantumComputer
) – A QuantumComputer which can run quantum programstomo_experiment (
Experiment
) – A suite of tomographic observables to measureprogress_callback (
Optional
[Callable
[[int
,int
],None
]]) – If not None, this function is called each time a group of settings is run with argumentsf(i, len(tomo_experiment)
such that the progress isi / len(tomo_experiment)
.calibrate_readout (
Optional
[str
]) – Method used to calibrate the readout results. Currently, the only method supported is normalizing against the operator’s expectation value in its +1 eigenstate, which can be specified by setting this variable to ‘plus-eig’ (default value). The preceding symmetrization and this step together yield a more accurate estimation of the observable. Set to None if no calibration is desired.
- Return type