Skip to main content

ry90_gate

Function ry90_gate 

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

Apply Ry(pi/2) gate (Ry(pi/2) P Ry(-pi/2)) on bit-packed Pauli operators.

This function transforms Pauli operators:

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

§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

A tuple containing:

  • T: The new Z component bits.
  • T: The new X component bits.
  • T: The sign flip bits.