Quantum Computing, Quantum, Quantum Physics, AI, Machine Learning.
ClassicalRegister(2) qc = QuantumCircuit(q, c) # Apply the Pauli X gate (for test purpose: make first qubit to state 1) qc.x(q[0]) # Apply the swap gate qc.swap(q[0], q[1]) # Measure the qubits qc.measure(q, c) # Execute the circuit job = execute(qc, backend, shots=1) result = job.result() # Print