|View source on GitHub|
Estimate single qubit readout error using parallel operations.
cirq.experiments.estimate_parallel_single_qubit_readout_errors( sampler: "cirq.Sampler", *, qubits: Iterable['cirq.Qid'] = 20, trials: int = 1000, repetitions: int = None, trials_per_batch: Optional[int] = None, bit_strings: np.ndarray = None ) ->
For each trial, prepare and then measure a random computational basis bitstring on qubits using gates in parallel. Returns a SingleQubitReadoutCalibrationResult which can be used to compute readout errors for each qubit.
||The qubits being tested.|
||The number of measurement repetitions to perform for each trial.|
||The number of bitstrings to prepare.|
||If provided, split the experiment into batches with this number of trials in each batch.|
||Optional numpy array of shape (trials, qubits) where the first dimension is the number of the trial and the second dimension is the qubit (ordered by the qubit order from the qubits parameter). Each value should be a 0 or 1 which specifies which state the qubit should be prepared into during that trial. If not provided, the function will generate random bit strings for you.|
A SingleQubitReadoutCalibrationResult storing the readout error
probabilities as well as the number of repetitions used to estimate
the probabilities. Also stores a timestamp indicating the time when
data was finished being collected from the sampler. Note that,
if there did not exist a trial where a given qubit was set to |0〉,
the zero-state error will be set to