NoisyPauliRotation#
qualtran.surface_code.t_factory_utils.NoisyPauliRotation
View source on GitHub
|
A channel that applies a pi/8 pauli rotation with possible overshooting to 5pi/8, -pi/8, and 3pi/8.
qualtran.surface_code.t_factory_utils.NoisyPauliRotation(
pauli_string: str, p1: float, p2: float, p3: float
)
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}
\]
Args
pauli_stringThe pauli string to apply the rotation to.
p1The probability of applying the rotation by 5pi/8.
p2The probability of applying the rotation by -pi/8.
p3The probability of applying the rotation by 3pi/8.
Methods#
num_qubits
num_qubits() -> int
The number of qubits this gate acts on.
View source on GitHub