Quantum Computing, Science, Programming.
q[0], c[0] ) ..the result should always be c[0]=1. If we did just half a NOT… q = QuantumRegister(1) c = ClassicalRegister(1) qc = QuantumCircuit(q, c) qc.u3(0.5*math.pi,0,0, q[0]) qc.measure( q[0], c[0] ) …q[0] will be halfway between 0 and 1 when it is measured. In fact it will be the