Quantum Computing, Science, Programming.
QuantumRegister(1) # initialize a register with a single qubit c = ClassicalRegister(1) # initialize a register with a normal bit qc = QuantumCircuit(q, c) # create and empty quantum program qc.u3(math.pi,0,0, q[0]) # apply a NOT to the qubit qc.measure( q[0], c[0] ) # measure the qubit First this