Class StandardGates.U2Gate

java.lang.Object
com.quantum4j.core.gates.SingleQubitGate
com.quantum4j.core.gates.StandardGates.U2Gate
All Implemented Interfaces:
Gate
Enclosing class:
StandardGates

public static final class StandardGates.U2Gate extends SingleQubitGate
U2(φ, λ) = U3(π/2, φ, λ)
  • Constructor Details

    • U2Gate

      public U2Gate(double phi, double lambda)
  • Method Details

    • name

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

      public double getPhi()
    • getLambda

      public double getLambda()