pauli_exp_all_x_except_at

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

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

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

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