Package com.quantum4j.core.gates
Class RZGate
java.lang.Object
com.quantum4j.core.gates.SingleQubitGate
com.quantum4j.core.gates.RZGate
- All Implemented Interfaces:
Gate
Rotation around the Z-axis (Rz(θ)) quantum gate.
Performs a parameterized rotation of θ radians around the Z-axis of the Bloch sphere. The gate matrix is:
[e^(-i*θ/2) 0 ] [ 0 e^(i*θ/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
-
RZGate
public RZGate(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
-