quantum_circuit::rzz()← Back to Class quantum_circuit
Apply \(Rzz\) gate to the circuit
quantum_circuit::rzz(theta, qubit_1, qubit_2)
theta (number) — The rotation angle \(\theta\)qubit_1 (number) — The qubit 1 to apply the gate toqubit_2 (number) — The qubit 2 to apply the gate to
quantum_circuit — Returns the instance of class quantum_circuit
import quantum
qc = quantum_circuit(2)
qc.rzz(pi / 2, 0, 1)