Readout error mitigation for the Sampler primitive using M3
Die Seite is noch nich übersetzt. Se kieken die englische Originalversion.
Usage estimate: under one minute on a Heron r2 processor (NOTE: This is an estimate only. Your runtime might vary.)
Background
Unlike the Estimator primitive, the Sampler primitive does not have built-in support for error mitigation. Several of the methods supported by the Estimator are specifically designed for expectation values, and hence are not applicable to the Sampler primitive. An exception is readout error mitigation, which is a highly effective method that is also applicable to the Sampler primitive.
The M3 Qiskit addon implements an efficient method for readout error mitigation. This tutorial explains how to use the M3 Qiskit addon to mitigate readout error for the Sampler primitive.
What is readout error?
Immediately before measurement, the state of a qubit register is described by a superposition of computational basis states, or by a density matrix. Measurement of the qubit register into a classical bit register then proceeds in two steps. First the quantum measurement proper is performed. This means that the state of the qubit register is projected onto a single basis state that is characterized by a string of s and s. The second step consists of reading the bitstring characterizing this basis state and writing it into classical computer memory. We call this step readout. It turns out that the second step (readout) incurs more error than the first step (projection onto basis states). This makes sense when you recall that readout requires detecting a microscopic quantum state and amplifying it to the macroscopic realm. A readout resonator is coupled to the (transmon) qubit, thereby experiencing a very small frequency shift. A microwave pulse is then bounced off of the resonator, in turn experiencing small changes in its characteristics. The reflected pulse is then amplified and analyzed. This is a delicate process and is subject to a host of errors.
The important point is that, while both quantum measurement and readout are subject to error, the latter incurs the dominant error, called readout error, which is the focus in this tutorial.
Theoretical background
If the sampled bitstring (stored in classical memory) differs from the bitstring characterizing the projected quantum state, we say that a readout error has occurred. These errors are observed to be random and uncorrelated from sample to sample. It has proven useful to model readout error as a noisy classical channel. That is, for every pair of bitstrings and , there is a fixed probability that a true value of will be incorrectly read as .
More precisely, for every pair of bitstrings , there is a (conditional) probability that is read, given that the true value is That is,
where is the number of bits in the readout register. For concreteness, we assume that is a decimal integer whose binary representation is the bitstring that labels the computational basis states. We call the matrix the assignment matrix. For fixed true value , summing the probability over all noisy outcomes must give . That is
A matrix with no negative entries that satisfies (1) is called left-stochastic. A left-stochastic matrix is also called column-stochastic because each of its columns sums to . We experimentally determine approximate values for each element by repeatedly preparing each basis state and then computing the frequencies of the occurrence of sampled bitstrings.
If an experiment involves estimating a probability distribution over output bitstrings by repeated sampling, then we can use to mitigate readout error at the level of the distribution. The first step is to repeat a fixed circuit of interest many times, creating a histogram of sampled bitstrings. The normalized histogram is the measured probability distribution over the possible bitstrings, which we denote by . The (estimated) probability