qrisp.QuantumCircuit.r#
- QuantumCircuit.r(theta: FloatLike, phi: FloatLike, qubits: QubitLike)[source]#
Instruct an R-gate.
Deprecated since version 0.10:
ris deprecated, useprx()instead.qc.r(theta, phi, qubits)is identical toqc.prx(theta, phi, qubits).- Parameters:
- thetaFloatLike
Rotation angle in radians. Controls the amount of rotation.
- phiFloatLike
Axis angle in radians. Selects the rotation axis in the XY plane.
- qubitsQubitLike
The qubit to apply the gate on.