pauli_exp_all_z_except_x_at

guppyft.code.iceberg.logical.pauli_exp_all_z_except_x_at(block: Block[N], i: int, phase: float) → None[source]

Apply the Pauli exponential with X at i and Z elsewhere.

\[\exp(-i \theta ( Z^{\otimes i} \otimes X \otimes Z^{\otimes(k-i-1)} ) / 2)\]

where \(\theta\) is phase in radians and \(k\) is the number of logical qubits in the block.