Class RYGate

All Implemented Interfaces:
Gate

public final class RYGate extends SingleQubitGate
Rotation around the Y-axis (Ry(θ)) quantum gate.

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

 [cos(θ/2)  -sin(θ/2)]
 [sin(θ/2)   cos(θ/2)]
 
  • Constructor Details

    • RYGate

      public RYGate(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