Skip to main content

y_gate

Function y_gate 

Source
pub fn y_gate<T: BitOps>(z: T, x: T) -> T
Expand description

Apply Y gate (Y P Y) on bit-packed Pauli operators.

This function transforms Pauli operators:

  • X -> -X
  • Y -> Y
  • Z -> -Z

§Arguments

  • z - A T containing the Z component bits of the packed Pauli operators.
  • x - A T containing the X component bits of the packed Pauli operators.

§Returns

The sign flip bits.