Quantum Computing, Science, Programming.
initialization and measurement… q = QuantumRegister(1) c = ClassicalRegister(1) qc = QuantumCircuit(q, c) qc.measure( q[0], c[0] ) …the result should always be c[0] = 0. If we did a NOT… q = QuantumRegister(1) c = ClassicalRegister(1) qc = QuantumCircuit(q, c) qc.u3(math.pi,0,0, q[0]) qc.measure(