Simulator Overview

The Quantum Circuit Simulator is where Qubi lives. Syntax pages explain the language; these pages explain the workspace: tabs, side panels, and how the builder stays in sync with your code.

Window layout

  • Left sidebar: gate palette (built-in gates, custom gates, control-flow tiles) and quick-load example circuits.
  • Center: main tabs (Circuit Builder, Data Analysis, Gate Creator, Parametric Sweep, NMR Analysis, Other Resources) and, below them, the collapsible visualization strip.
  • Right sidebar: Qubi Code Editor with file tabs, layer tabs (prepended / main / appended), toolbar actions, and the compilation log.
  • Header bar: Settings, Clear Circuit, Export, and Run Circuit.

Drag the vertical handles between panels to resize. Layout choices usually persist for the session.

Main tabs

Each center tab has its own doc page with full detail:

Panels outside the center tabs

Run, export, settings

Run Circuit runs the full state-vector simulation and refreshes every visualization. The button stays disabled while the editor reports validation errors.

Export can emit OpenQASM 2, Qiskit, or image/PDF snapshots depending on the dialog.

Settings mirrors every #settings key: qubit limits, scheduling, angle units, sweep optimization, step mode, display toggles, and editor layer text areas. See #settings.

Evaluated labels and control-flow visuals

With ShowEvaluatedLabels (default on), LOOP tiles and some registers show resolved numbers after expression evaluation. Handy when you wrote visiblemax-1 and want to confirm it became 2.

LOOP, MEASURE, and if blocks render as column-spanning regions. MEASURE shows M on measured wires and · on skipped visible rows. Inactive or never-taken branches gray out in step mode.