Quantum Computing, Quantum, Quantum Physics, AI, Machine Learning.
the Toffoli gate circuit.ccx(qr[0], qr[1], qr[2]) # Measure the qubits circuit.measure(qr, range(3)) # Execute the circuit on a simulator backend = Aer.get_backend('qasm_simulator') result = execute(circuit, backend, shots=1024).result() counts = result.get_counts() # Print the results