Quantum Computing, Quantum, Quantum Physics, AI, Machine Learning.
QuantumCircuit, execute, Aer # Define a quantum circuit with one qubit qc = QuantumCircuit(1) # Apply the Pauli Hadamard gate to the qubit qc.h(0) # Execute the circuit on a simulator backend = Aer.get_backend('qasm_simulator') job = execute(qc, backend, shots=1024) result = job.result() # Print