Module: cirq.work.observable_measurement

Classes

class BitstringAccumulator: A mutable container of bitstrings and associated metadata populated

class CheckpointFileOptions: Options to configure "checkpointing" to save intermediate results.

class ObservableMeasuredResult: The result of an observable measurement.

class RepetitionsStoppingCriteria: Stop sampling when the number of repetitions has been reached.

class StoppingCriteria: An abstract object that queries a BitstringAccumulator to figure out

class VarianceStoppingCriteria: Stop sampling when average variance per term drops below a variance bound.

Functions

flatten_grouped_results(...): Flatten results from a collection of BitstringAccumulators into a list

measure_grouped_settings(...): Measure a suite of grouped InitObsSetting settings.

measure_observables(...): Measure a collection of PauliString observables for a state prepared by a Circuit.

measure_observables_df(...): Measure observables and return resulting data as a Pandas dataframe.

Type Aliases

GROUPER_T: The central part of internal API.

MAX_REPETITIONS_PER_JOB 3000000

The maximum repetitions allowed in a single batch job.

This depends on the Sampler executing your batch job. It is set to be
tens of minutes assuming ~kilosamples per second.

TYPE_CHECKING False