NoisyPauliRotation#

qualtran.surface_code.t_factory_utils.NoisyPauliRotation

A channel that applies a pi/8 pauli rotation with possible overshooting to 5pi/8, -pi/8, and 3pi/8.

The channel is defined as

\[ \sum_{k \in \{1, 5, -1, 3\}} p_k e^{-i \frac{\pi}{8} k P} \rho e^{i \frac{\pi}{8} k P} \]
pauli_string

The pauli string to apply the rotation to.

p1

The probability of applying the rotation by 5pi/8.

p2

The probability of applying the rotation by -pi/8.

p3

The probability of applying the rotation by 3pi/8.

Methods#

num_qubits

The number of qubits this gate acts on.