Skip to content

Workflow

Reading a quantum circuit before writing more code

Learn to read wires, gates, controls and measurements, then use QFlow’s Design and Code views to check a small circuit from two useful angles.

Workflow2026-06-022 min readReviewed 2026-10-28

A modular teaching board with two glass paths, removable gates and two output tiles.
A small circuit. The whole experiment.
QFlow Studio canvas showing a quantum workflow
Inside QFlowCircuit view in QFlow: qubit wires and their operation sequence. QFlow Studio product capture

A quantum circuit becomes less intimidating once you can point to a gate, name its qubit and explain what comes next.

Key takeaways

  1. Trace wires in order.
  2. Check control and target assignments.
  3. Read measurement order before interpreting bitstrings.

Chapter 01

Follow one wire at a time

Read a circuit from left to right. Each wire identifies a qubit; a gate changes its state or its relationship with another qubit. Start by tracing a single wire through the drawing. A large page of symbols is easier to understand as a sequence of small operations than as one mysterious algorithm.

Chapter 02

A controlled gate has two different jobs

In a CNOT, the control and target are not interchangeable labels. The target flips when the control is in the computational state 1. Swapping those roles changes the operation. When inserting a gate, check its qubit assignments rather than relying only on the position of its icon.

Explore the ideal model

What changes when you remove CNOT?

H(q0) → CX(q0, q1) → measure

00
50%
01
0%
10
0%
11
50%
Theoretical probabilities, with bit order q1 q0. Both qubits start in 0. Finite-shot counts can vary. This one measurement basis does not certify entanglement.

Chapter 03

Make measurement explicit

Measurements turn the experiment into classical outputs you can count. Decide which qubits are measured and where the results are stored. A register ordering convention can make a displayed bitstring look reversed from your drawing, so check the convention before diagnosing an error.

Chapter 04

Use the second view as a cross-check

In QFlow, inspect the supported generated code after editing the circuit. Compare the gate order, controls, parameters and measurements. If the selected format cannot preserve an operation, keep the current representation and read the compatibility explanation. A smaller faithful circuit is more useful than a larger ambiguous export.

Sources

  1. QFlow StudioQFlow user guide: the current workspaceReference; checked 2026-10-28
  2. IBM QuantumIBM Quantum Composer: operations and circuit inspectionReference; checked 2026-10-28

Next step

Try one small experiment.

Choose a supported example, make a prediction and see what changes when you edit the circuit.

Explore the Hub