
0 or 1 Nothing in between.0 and a 1 at the same time until it's measured.not operator changes the value. It takes False and turns it into True.not, they use something called quantum gates.not+-*OFF. Press the switch. Now it becomes: ON. Press it again. It becomes OFF.0.0 was behaving like a 0, it now behaves like a 1.1, it becomes a 0.X Gate as the quantum version of a light switch or a Python not operator.Heads or Tails, right?0 or 10 into a superposition.0 or just 1. It now has a chance of becoming either when we measure it. Think of it like a spinning coin waiting to land.0 to control what happens to qubit 1."0, nothing happens. The target qubit stays exactly the same.1, the target qubit flips: 0 becomes 1.3.12.8 or 3.13.8. Those versions work well with all the dependencies you'll be installing.quantum-python and then open it in VS Code.bell_state.py. This file will contain your first quantum program.QuantumCircuit class.qc.h(0).0.0 into superposition. This is where quantum behavior begins.qc.cx(0, 1).qc.measure([0, 1], [0, 1]).0011shots=1024.python bell_state.py.00and 11.01 or 10AerSimulator:AerSimulator should import successfully, and you can continue with the rest of the tutorial.pip install qiskit.pip install qiskit-aer.bell_state.py file will now look like this:0 or both become 1. The outcome was random, but they always agreed. That's the key observation.qc.h(0) and run the circuit again. What changes?shots=1024 to shots=100000.qc.x(1) before the CNOT gate.QuantumCircuit(2, 2) to QuantumCircuit(3, 3).Posted Jul 14, 2026
Tutorial on building a quantum circuit using Python and Qiskit for beginners.