If you are learning quantum programming, the fastest way to build intuition is to revisit a small set of circuits until their behaviour feels predictable. This guide collects 15 quantum circuit examples for beginners, arranged from single-qubit basics to simple multi-qubit patterns that lead naturally into algorithms. Each example is here for a reason: to teach one idea clearly, give you something concrete to implement in Qiskit or Cirq, and help you build a reusable mental model rather than memorise syntax.
Overview
This hub is designed as a practical learning path, not a list of disconnected demos. Many quantum computing tutorials jump too quickly from definitions to famous algorithms, which leaves beginners able to copy code but not explain what the circuit is doing. A better approach is to study a handful of small circuits that each isolate one concept: state preparation, phase, interference, entanglement, measurement, and controlled operations.
The 15 starter circuits below are grouped into three stages:
Stage 1: single-qubit intuition — understand how gates change a qubit and how measurement behaves.
Stage 2: two-qubit building blocks — learn how correlations and control logic appear in a circuit.
Stage 3: simple quantum algorithms — combine the basics into patterns that resemble real algorithm design.
You do not need real hardware to start. In fact, most of these examples are better explored on a simulator first, where you can inspect statevectors, probabilities, and circuit diagrams without noise getting in the way. If you want a place to run them, see Quantum Computer Access Guide: Where to Run Real Quantum Hardware Online. If you are still choosing a framework, our comparison of Qiskit, Cirq, PennyLane, Q#, and Classiq is a useful starting point.
For readers following a broader quantum computing learning path, treat this article as your lab manual. Build each circuit, predict the output before you run it, then change one gate and observe what breaks. That cycle matters more than racing ahead.
Topic map
Here is the progression this hub recommends, with each circuit tied to one core lesson.
Stage 1: Single-qubit foundations
1. The measurement-only circuit
Start with one qubit in its default state and measure it. The result should be stable, and the point is not excitement but baseline understanding. You are learning what an untouched qubit looks like in code and in output.
2. X gate flip circuit
Apply an X gate, then measure. This is the quantum version of a bit flip and helps you confirm that gates can produce deterministic outcomes. It also introduces the idea that some quantum gates behave very classically in the computational basis.
3. Hadamard superposition circuit
Apply H to a single qubit and measure repeatedly. This is one of the first circuits that makes quantum behaviour visible: the output is no longer fixed. It is the cleanest practical way to begin understanding superposition explained in operational terms.
4. Z gate after H circuit
Prepare superposition with H, apply Z, then measure. Beginners are often surprised that the measurement counts look unchanged. That is useful. It teaches that phase changes can matter internally even when raw measurement results do not immediately reveal them.
5. H-Z-H phase-to-bit circuit
This circuit turns hidden phase into a measurable effect. Apply H, then Z, then H again before measurement. Compared with the previous example, this makes phase feel less abstract because it now affects the final output directly.
6. Y gate exploration circuit
Apply Y and compare the result with X and Z behaviour. This is a good exercise in noticing that not all gate effects are easy to interpret by looking only at one final measurement. It encourages use of a statevector simulator or Bloch sphere visualisation.
Stage 2: Two-qubit building blocks
7. Independent two-qubit superposition circuit
Apply H to two qubits separately and measure both. This introduces multi-qubit state spaces without entanglement. It is important because many beginners assume that any two-qubit quantum circuit is automatically entangled. It is not.
8. Bell pair circuit
Apply H to the first qubit, then CNOT from qubit one to qubit two. This is the classic beginner circuit for entanglement explained through code. Measure many times and you should see correlated outputs. It is small enough to memorise and important enough to revisit often.
9. Bell pair with reversed control-target thinking
Rebuild the Bell circuit and then swap which qubit acts as control in your code or rearrange preparation order. The goal is not to find a new theorem but to learn how circuit layout and qubit indexing can affect your implementation decisions.
10. Controlled flip truth-table circuit
Prepare two qubits in different basis states, apply CNOT, and measure. Run all four classical input combinations. This is the bridge between classical logic intuition and quantum circuit design. It also sharpens your understanding of control and target qubits.
11. Entanglement versus correlation comparison circuit
Build two circuits: one that creates correlated classical-looking outputs, and one that creates a Bell pair. Compare their structure and outputs. This is an excellent beginner exercise because it teaches that correlation alone is not the same thing as entanglement.
Stage 3: Simple algorithm patterns
12. Interference circuit
Apply H twice in a row and measure. The result looks simple, but the lesson is deep: amplitudes can combine constructively or destructively. This circuit is one of the shortest ways to explain interference, which sits underneath many simple quantum algorithms.
13. Deutsch-style constant versus balanced toy circuit
Use one input qubit and one helper qubit to implement a minimal oracle pattern. Even if you do not study the full Deutsch algorithm in detail, this example introduces the idea of querying a function through a circuit and using interference to learn something about it.
14. Quantum teleportation skeleton
Do not worry about building a production-ready version at first. Focus on the structure: create entanglement, interact the source qubit with one half of the pair, measure, and apply conditional correction. This is a valuable revisit circuit because it combines several beginner concepts without requiring large systems.
15. Simple variational circuit template
Create a circuit with one or two parameterised rotation gates, measure an expectation-like output, and adjust the parameter manually. This is not yet a full variational quantum eigensolver, but it gives beginners a feel for hybrid quantum programming and why parameterised circuits matter in modern workflows.
As you work through these examples, keep two notebooks: one for code and one for predictions. The prediction notebook is often more valuable. Before running a circuit, write down what you think the output distribution should be and why. This habit turns passive reading into active quantum programming practice.
If simulator behaviour is confusing across frameworks, our quantum simulator comparison can help you choose tools that match your learning style.
Related subtopics
The circuits above are the centre of the hub, but several related topics will make them much easier to understand and extend.
1. Qubits, bases, and measurement
If a circuit feels mysterious, the problem is often not the circuit but the underlying representation. You should be comfortable with basis states, measurement in the computational basis, and the idea that some changes affect probabilities while others affect phase. A lot of confusion in quantum computing for beginners comes from mixing up these layers.
2. Gate sets and framework syntax
The same circuit can look slightly different in Qiskit, Cirq, or PennyLane. That difference matters less than the conceptual structure. Learn to identify the pattern independently of the library: initialise, apply gates, measure, inspect output. Once that pattern is stable in your mind, moving between frameworks becomes much easier. If you are comparing options, see Quantum Programming Languages Compared.
3. Simulators versus real hardware
Most beginner circuits are cleaner on simulators because you can study ideal behaviour first. Real devices introduce noise, routing constraints, calibration effects, and queue times. Those are important later, but they can obscure the lesson of a starter circuit. Once you understand the ideal version, running the same circuit on hardware becomes more meaningful.
4. Circuit diagrams and state inspection
Do not rely on measurement counts alone. For small examples, use tools that show statevectors, Bloch sphere positions, or probability amplitudes. A beginner who inspects internal state on 1–2 qubit circuits often learns faster than someone who immediately jumps to larger examples.
5. Parameterised circuits and hybrid workflows
The last example in this hub points toward a major theme in current quantum programming: hybrid systems where classical optimisers interact with quantum circuits. Understanding that pattern will help you later with variational algorithms, quantum machine learning tutorial material, and practical developer tooling.
6. Resource awareness
Even simple circuits benefit from knowing where they run best. If you are evaluating platforms, access methods, or budget implications, these guides may help: IBM Quantum Pricing and Plans and Amazon Braket Pricing Explained. They are especially useful once you move from local experiments to cloud execution.
7. Learning path beyond starter circuits
After these 15 examples, the next logical topics are Deutsch-Jozsa, Grover-style search intuition, simple variational workflows, noise-aware transpilation, and basic error mitigation concepts. For a structured sequence, see Quantum Computing Roadmap: What Beginners Should Learn First, Second, and Third. If you prefer formal study, our guide to quantum computing courses and certificates for developers can help you extend this practice-based approach.
How to use this hub
This article works best if you use it as a repeatable workshop rather than a one-time read. A practical routine looks like this:
Step 1: Pick one circuit and one question.
Do not try to master all 15 in one sitting. Choose one example and decide what you want to understand: deterministic outcomes, superposition, phase, entanglement, or interference.
Step 2: Build it in one framework.
Use whichever tool you already have available. Qiskit circuit examples are especially common in beginner materials, but Cirq circuit tutorial workflows can be equally clear. The framework matters less than consistency during your first pass.
Step 3: Predict before you run.
Write down expected measurement results and, if relevant, expected state behaviour. This is where your intuition grows.
Step 4: Run on a simulator first.
Use ideal simulation so that noise does not confuse the concept. Save hardware runs for later verification or curiosity.
Step 5: Change one thing.
Swap X for Z. Remove a Hadamard. Reverse control and target if the framework allows the same conceptual test. Small edits teach more than copying larger examples.
Step 6: Re-implement the same circuit elsewhere.
Once you understand a circuit in one stack, rebuild it in another. This is one of the fastest ways to separate quantum concepts from library-specific habits.
Step 7: Keep a personal catalogue.
Store your final versions in a folder named by concept, not by framework. For example: superposition, phase-kickback, bell-pair, variational-template. Over time this becomes your own reference library of quantum circuit examples.
For teams and technical professionals, this hub also works well as a short internal study track. One useful format is a weekly circuit review: every week, one person presents a tiny circuit, explains what should happen, then demonstrates it on a simulator. That format keeps the learning grounded and avoids the common problem of discussing quantum computing only at the buzzword level.
As your interests expand from circuits to the broader ecosystem, you may also find these context pieces useful: Why the Future Quantum Stack Will Be Hybrid, Inside the Quantum Vendor Map, and The Quantum Market Map. They help place beginner circuit work inside the larger tooling and platform landscape.
When to revisit
This hub is meant to be durable, but it is also worth returning to as your skills grow. Revisit these circuit examples when any of the following happens:
You start a new framework.
Rebuilding familiar starter circuits is the best way to compare Qiskit, Cirq, PennyLane, or another tool without getting lost in advanced features.
You move from simulator to hardware.
Run the Bell pair, interference, and variational template again on real devices to see how noise changes your expectations.
You begin studying algorithms.
Before tackling more formal quantum algorithms explained in textbooks or research papers, return to H, CNOT, phase, and interference circuits. Most algorithm confusion comes from weak fundamentals, not difficult mathematics alone.
You need interview or teaching examples.
These 15 circuits make a useful shortlist for explaining quantum ideas to colleagues, students, or hiring panels because they are small enough to discuss clearly.
The tooling landscape expands.
As new simulators, transpilers, visual tools, and cloud interfaces appear, this hub can be extended with fresh implementations of the same core circuits. The examples stay relevant even when the surrounding software changes.
You want to measure progress honestly.
A reliable test is simple: can you sketch the Bell pair circuit, explain why HZH differs from H alone, and describe why two Hadamards can cancel? If not, revisit Stage 1 and Stage 2 before moving on.
To make this article action-oriented, here is a practical next-session plan:
1. Build circuits 1 through 5 in your preferred framework.
2. Use a simulator and record expected versus actual outcomes.
3. Repeat circuits 8 and 12 until you can explain them without notes.
4. Choose either the teleportation skeleton or the variational template as your first “stretch” circuit.
5. Bookmark this page and return whenever you adopt a new tool, start a new course, or need a clean conceptual reset.
Quantum programming becomes far less intimidating when you stop chasing large examples and start mastering small ones. These 15 starter circuits are enough to build real intuition, and they remain useful long after you stop calling yourself a beginner.