Class RXGate

All Implemented Interfaces:
Gate

public final class RXGate extends SingleQubitGate
Rotation around the X-axis (Rx(θ)) quantum gate.

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

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

    • RXGate

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