Class RZGate

All Implemented Interfaces:
Gate

public final class RZGate extends SingleQubitGate
Rotation around the Z-axis (Rz(θ)) quantum gate.

Performs a parameterized rotation of θ radians around the Z-axis of the Bloch sphere. The gate matrix is:

 [e^(-i*θ/2)      0     ]
 [    0      e^(i*θ/2) ]
 
  • Constructor Details

    • RZGate

      public RZGate(double theta)
  • Method Details

    • getTheta

      public double getTheta()
    • name

      public String name()
      Description copied from interface: Gate
      Get the name of this gate (e.g., "H", "X", "CNOT").
      Returns:
      the gate name