pub fn h_gate<T: BitOps>(z: T, x: T) -> (T, T, T)Expand description
Apply H gate (H P H) on bit-packed Pauli operators.
This function transforms Pauli operators:
- X -> Z
- Z -> X
- Y -> -Y
§Arguments
z- ATcontaining the Z component bits of the packed Pauli operators.x- ATcontaining the X component bits of the packed Pauli operators.
§Returns
A tuple containing:
T: The new Z component bits.T: The new X component bits.T: The sign flip bits.