quantum_circuit::sqrt_x()← Back to Class quantum_circuit
Apply \(\sqrt{X}\) gate to the circuit
quantum_circuit::sqrt_x(qubit)
qubit (number) — The qubit to apply the gate to
quantum_circuit — Returns the instance of class quantum_circuit
import quantum
qc = quantum_circuit(2)
qc.sqrt_x(0)