quantum_circuit::cy()← Back to Class quantum_circuit
Apply \(CY\) gate to the circuit
quantum_circuit::cy(qubit_control, qubit_target)
qubit_control (number) — The qubit control to apply the gate toqubit_target (number) — The qubit target to apply the gate to
quantum_circuit — Returns the instance of class quantum_circuit
import quantum
qc = quantum_circuit(2)
qc.h(0)
qc.cy(0, 1)