Mathematical formalism
Given the task of learning Pauli noise for a set of Clifford gates, a common analysis technique is to track how individual Pauli operators are transformed through a sequence of gate applications (under the assumption that the gates are Clifford and the noise is a Pauli channel, a single Pauli will always be mapped to another Pauli up to a scalar that is a function of the noise). Obviously, the evolution of any state under such a sequence can be captured by a linear combination of such trajectories, but under the assumption that we always prepare the state in a Pauli eigenstate, and always measure and post-process the results to compute the expectation value of a Pauli operator, the relationship between the expectation value and the noise model parameters will always depend on only a single such trajectory. This follows from the simple fact that the initial state is a linear combination of Pauli operators, each gate and noise model maps Paulis to Paulis and preserves their orthogonality, and the final expectation value “selects” only one of the Paulis in the final decomposition before measurement.
This type of reasoning appears in many parallel research tracks in noise learning, including in the Pauli gate-set learning literature [3], [4], the ACES literature [6], and the cycle benchmarking literature [5]. This reasoning was further generalized in [7] to include Clifford-MCM gates (a Clifford gate followed by a projective mid-circuit measurement). This package most closely follows [4], [7]. While not explicitly named, we adopt the Pattern Transfer Graph (PTG) formalism for describing how Pauli operators evolve through learning circuits, providing a direct data representation of paths through the graph.
The following is a review of some core mathematical concepts from the literature. It is primarily meant to consolidate notation, and to serve as a conceptual documentation reference for the rest of the package.
1. Background
1.1 Notation
For , let . For a finite set of qubit indices, let denote the set of unphased Pauli operators acting on those qubits. Note that we think of elements of as functions mapping , so that for any and , denotes the restriction of to the qubit subset . Along these lines, for disjoint sets , and and , denotes the element of such that and . This notation is helpful to avoid explicitly dealing with subsystem orderings, and to make it easy to describe restrictions.
For finite subsets , we denote as the set of the bit strings whose elements are indexed by . Similarly to the above, we think of elements as functions mapping , so that we may easily describe substrings in terms of restrictions of the index set.
Lastly, for a matrix , we use to denote its vectorization. Based on the limited way in which we use this notation, it is not actually necessary to choose a specific vectorization convention. For a classical bit string , we use the shorthand .
1.2 Quantum instruments
A quantum operation producing classical bits (for example, the result of measurement) is generally modeled as a linear map of the form:
where the set are completely positive, and is trace-preserving. A set of completely positive maps satisfying these properties is called a quantum instrument. A unitary gate is a special case of an instrument with only one element that is a unitary operation.
2. Noisy Clifford-MCM-reset gates
The formalism utilized in this package assumes every gate in the gate set to be characterized consists of the following sequence of operations on qubits:
- A Clifford operation on all qubits.
- A mid-circuit projective measurement along on some subset of qubits .
- A mid-circuit reset to the ground state on some subset of qubits .
This is a general class of operations that includes unitary Clifford gates, measurement, state preparation, and any combination of the above. Note that we assume measurement and reset are always along the -axis for each qubit. While this is not strictly required, it is a common feature of many quantum computing modalities, and enables simplified representations and analysis.
As outlined in [1], [7] for the no-reset case, if a specific twirling strategy is applied to a noisy instance of such a gate, then the action of the resulting operation can be modeled mathematically as a uniform Pauli instrument. That is, within the quantum instrument notation, , where is the Clifford unitary, and:
where each is a sub-normalized Pauli channel on the unmeasured qubits . It is implied by this being a quantum instrument that is also trace-preserving. Some notes:
- The initial untwirled noise is modeled to include both “quantum” and “classical” errors: erroneous operations on the quantum registers, as well as mistakes in the measurement value reporting.
- The noise map is independent of the measurement outcome .
In words, a single term in the above sum represents observing a measurement outcome of when the measured state was (a misclassification if ), and when the output state on the measurement register is (the “wrong” state when ). The map simultaneously encodes the action on the unmeasured qubits (conditioned on the measurement behavior) and the probability of the specific measurement behavior (through the normalization).
Note that we are not concerned here with the specifics of the twirling strategy: that such a strategy exists to put the channel into the above form is enough. Note that “finer” twirling strategies exist which can further restrict the form of the Pauli channels [2]; however, we take the above form as the most general mathematical representation under consideration.
In Lemma 1 of [7], it is shown that can be rewritten as:
for some real numbers , which are called the fidelities of the instrument.
Adding reset to this picture is relatively straightforward. A noisy reset operation on qubits can be modeled according to the decomposition:
The above form explicitly utilizes the assumption that the reset is along the -axis for each qubit. Noise in the operation is encoded in the reset fidelities , which are simply indexed by qubit subsets.
An analog to Equation (1) that includes a reset operation at the end can be attained by simply composing it with Equation (2). This composition, after some simplification, yields:
This decomposition indicates that the number of fidelities is
Consider limiting cases: (1) For no measurement or reset, , and the expression yields , the number of phase-less Pauli operators on qubits. (2) For and , this yields , which is the number of subsets of . Lastly, (3) for and , this yields . Note that this may initially seem surprising: for standard learning, measurement and reset are typically considered to have the same number of fidelities: . However, here the all-measurement gate in this context is understood not as a terminal measurement, but as an MCM, and as such fidelities corresponding to non-identity outputs of the measurement are also included (such as in Equation (3)).
Finally, it is important to note that any twirling strategy yielding the form in Equation (1) in the non-reset case still applies equally well to the non-trivial reset case with a simple modification. The potential problem is that such a twirling strategy may require operations on measured qubits after the measurement. Therefore, if a qubit is measured and reset, implementing the strategy seemingly requires inserting operations within the gate between the measurement and reset. However, given the nature of reset, any such operations have no effect, and can simply be skipped while still yielding the same desired structure.
3. Path formalism
As described in the introduction, all learning algorithms for Pauli-type noise on Clifford gates are based around tracking how individual Paulis evolve through a circuit, picking up noise fidelity factors along the way. The expectation values of a circuit composed of such gates are therefore related simply to products of the underlying fidelities of the individual gates, and in this way model parameters can be inferred by inverting whatever sparse parameter-to-fidelity mapping is being assumed.
In [4], in the context of unitary gate sets, this is formalized into the Pattern Transfer Graph (PTG): a directed graph describing all possible experiments consisting of elements of the gate set and layers of single-qubit Clifford gates (assumed to be perfect, or “free”, operations). This was generalized in [7] to include gate sets with mid-circuit measurements. In both cases, each experiment is described by tracking a single Pauli operator through the circuit, under the assumption of a particular observable being computed at each measurement site. Here we do not directly review the graph or path constructions; however, we present the required facts for justifying them within our own notation and with resets included.
While the tracking of a single Pauli operator through the circuit may be intuitive in the unitary gate set case, it does not so obviously hold in the more general Clifford-MCM-reset case, due to the non-deterministic nature of measurement. The following proposition recovers this picture even in the more general case [7]:
For any , , and , it holds that:
In other words, if we compute the expectation value on the classical register output by the MCM, then the “Heisenberg picture” evolution of an observable through the Clifford-MCM-reset gate maps . This fact alone enables recovery of PTG-like analysis beyond the unitary gate set case: with a particular post-processing of the measurement results, even gates with measurements and resets can be viewed as deterministically mapping one Pauli operator to another.
Before proving this, we write Equation (3) in a more suggestive way. Note that for , it holds that , and as such (in super operator notation) we have:
where we have applied Equation (3) and collected terms, and we use the subscript to indicate the classical measurement result register, which we treat above in a similar notation to the quantum registers.
Proof. It holds that:
Lastly, observe that , and hence the final term above collapses down to the single term , yielding the desired result.
See [7] for development beyond this point: the definition of the PTG, paths through the PTG, and the proof that any properly-defined path corresponds to an experiment.
References
[1] Stefanie J. Beale and Joel J. Wallman. Randomized compiling for subsystem measurements. 2023. URL: http://arxiv.org/abs/2304.06599, doi:10.48550/arXiv.2304.06599.
[2] Ewout van den Berg and Pawel Wocjan. Techniques for learning sparse Pauli-Lindblad noise models. Quantum, 8:1556, 2024. URL: https://quantum-journal.org/papers/q-2024-12-10-1556/, doi:10.22331/q-2024-12-10-1556.
[3] Edward H. Chen, Senrui Chen, Laurin E. Fischer, Andrew Eddins, Luke C. G. Govia, Brad Mitchell, Andre He, Youngseok Kim, Liang Jiang, and Alireza Seif. Disambiguating pauli noise in quantum computers. PRX Quantum, pages, 2026. doi:10.1103/69wc-gzl6.
[4] Senrui Chen, Zhihan Zhang, Liang Jiang, and Steven T. Flammia. Efficient Self-Consistent Learning of Gate Set Pauli Noise. PRX Quantum, 7(1):010305, 2026. URL: https://link.aps.org/doi/10.1103/1pnv-t9px, doi:10.1103/1pnv-t9px.
[5] Alexander Erhard, Joel J. Wallman, Lukas Postler, Michael Meth, Roman Stricker, Esteban A. Martinez, Philipp Schindler, Thomas Monz, Joseph Emerson, and Rainer Blatt. Characterizing large-scale quantum computers via cycle benchmarking. Nature Communications, 10(1):5347, 2019. doi:10.1038/s41467-019-13068-7.
[6] Steven T. Flammia. Averaged Circuit Eigenvalue Sampling. In 17th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2022), volume 232 of Leibniz International Proceedings in Informatics (LIPIcs), 4:1–4:10. Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.TQC.2022.4.
[7] Zhihan Zhang, Senrui Chen, Yunchao Liu, and Liang Jiang. Generalized Cycle Benchmarking Algorithm for Characterizing Midcircuit Measurements. PRX Quantum, 6(1):010310, 2025. URL: https://link.aps.org/doi/10.1103/PRXQuantum.6.010310, doi:10.1103/PRXQuantum.6.010310.