pauli_exp_all_z_except_at¶
- guppyft.code.iceberg.logical.pauli_exp_all_z_except_at(block: Block[N], i: int, phase: float) None[source]¶
Apply the Pauli exponential with I at
iand Z elsewhere.\[\exp(-i \theta ( Z^{\otimes i} \otimes I \otimes Z^{\otimes(k-i-1)} ) / 2)\]where \(\theta\) is
phasein radians and \(k\) is the number of logical qubits in the block.