qrisp.QuantumCircuit.r#

QuantumCircuit.r(theta: FloatLike, phi: FloatLike, qubits: QubitLike)[source]#

Instruct an R-gate.

Deprecated since version 0.10: r is deprecated, use prx() instead. qc.r(theta, phi, qubits) is identical to qc.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.