Package com.quantum4j.core.gates
Class RYGate
java.lang.Object
com.quantum4j.core.gates.SingleQubitGate
com.quantum4j.core.gates.RYGate
- All Implemented Interfaces:
Gate
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)]
-
Field Summary
Fields inherited from class com.quantum4j.core.gates.SingleQubitGate
matrix -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.quantum4j.core.gates.SingleQubitGate
apply, arity
-
Constructor Details
-
RYGate
public RYGate(double theta)
-
-
Method Details
-
getTheta
public double getTheta() -
name
Description copied from interface:GateGet the name of this gate (e.g., "H", "X", "CNOT").- Returns:
- the gate name
-