Quantum Computing, Quantum, Quantum Physics, AI, Machine Learning.
the CNOT gate on q0 and q1 circuit.cz(q[0], q[1]) # Measure both qubits circuit.measure(q, c) # Execute the circuit on a quantum backend backend = BasicAer.get_backend('qasm_simulator') job = execute(circuit, backend, shots=1024) result = job.result() counts = result.get_counts(circuit)