Skip to content

Workflow

From a quantum model to a circuit with Qmod

High-level modeling changes where you begin, but the generated circuit still needs inspection. Here is a practical way to read a Qmod-based example.

Workflow2026-05-302 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

Sometimes you want to describe the quantum operation you need before deciding how every gate should be arranged.

Key takeaways

  1. Understand the model’s intended transformation.
  2. Retain synthesis settings.
  3. Keep source models linked to exported circuits.

Chapter 01

Read the model before the circuit

Qmod expresses a quantum model using its own language constructs or a Python embedding. Start by understanding the variables and intended transformation. A visually tidy generated circuit does not tell you whether the original model describes the problem you meant to solve.

Chapter 02

Keep the synthesis choices

High-level descriptions can lead to different implementations under different constraints. Preserve the model and the settings used to produce the circuit. If you compare two outputs, explain which constraint changed rather than presenting depth alone as an unconditional quality score.

Chapter 03

An exported circuit is one artifact

The circuit is useful for inspecting gates, but it may not carry the high-level intent or all of the source model. Keep those artifacts linked. This is especially helpful when someone needs to modify the problem instead of merely rerunning an existing implementation.

Chapter 04

Use a faithful handoff

When moving an example into QFlow, check the available supported format and its operation coverage. A readable export is useful; a partially converted model is misleading. Preserve the original Qmod program whenever the full structure cannot be represented in the visual editor.

Sources

  1. ClassiqQmod language referenceReference; checked 2026-10-28
  2. QFlow StudioQFlow user guide: the current workspaceReference; 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