quantum_circuit::rxx()← Back to Class quantum_circuit
Apply \(Rxx\) gate to the circuit
quantum_circuit::rxx(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.rxx(pi / 2, 0, 1)