version 1.0 # Implementation of Deutsch algorithm with two qubits for f(x)=x qubits 2 X q[1] H q[0] H q[1] CNOT q[0],q[1] H q[0] measure q[0]