Package com.quantum4j.core.gates
Class RXGate
java.lang.Object
com.quantum4j.core.gates.SingleQubitGate
com.quantum4j.core.gates.RXGate
- All Implemented Interfaces:
Gate
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) ]
-
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
-
RXGate
public RXGate(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
-