Skip to Content
DocsUnitary Studio Web User ManualQuantum Circuit Editor Guide

Quantum Circuit Editor Guide

Overview

Use the Quantum Circuit Editor to build and adjust circuits, inspect gate descriptions, and examine probability, amplitude, and density-matrix views. Start from a case, AI chat, or circuit code.

How to Enter a Quantum Circuit

Choose Quantum Circuit Editor in the left navigation. A collapsed sidebar displays the corresponding icon; expanding it reveals the full name.

Quantum Circuit Editor navigation

Numbers in the figure correspond to:

  1. Quantum Circuit Editor: open the circuit-editing page.

Three common generation paths

PathHow to use it
Experiment casesUse Bell state, QFT, Grover search, or GHZ state at the top, or open More cases and apply a case.
AI chat / AgentDescribe the target circuit, then use the circuit link offered in the conversation to continue editing.
Code editingOpen the Code tab on the right and edit using the currently supported QASM / Python options.

More cases and Code tab

Numbers in the figure correspond to:

  1. More Examples: browse and select additional circuit cases.
  2. Code: switch the right-hand area to circuit code.

These callouts identify the case entry and code tab. For AI-generated circuits, see the AI Chat Guide.

Gate Descriptions and Composite Gates

The gate list on the left includes H, X, Y, rotation, and controlled gates. Select a gate and use Parameters on the right to inspect its name, type, and matrix.

Selected H gate parameters

Numbers in the figure correspond to:

  1. Gate name and type: the example is H, a single-qubit gate.
  2. Parameters: the currently selected description tab.
  3. Gate matrix: the matrix for the selected H gate.

Composite gates package a group of operations for reuse. Arrange the required gates on the circuit, then select Save Gate in the toolbar to create and save a custom gate. The saved gate appears in the gate list on the left; drag it onto the circuit to reuse the complete operation group.

Collapsed composite gate and saved custom gate

  1. Saved custom gate: drag it from the left onto the circuit to use it.
  2. Save Gate: save the current gate combination as a custom gate.
  3. Expand composite gate: click the + at the gate’s lower-right corner to inspect the inner gates.

Expanded composite gate

Callout 1 marks the − at the lower-right corner. Click it to collapse the inner structure back into one gate. Expansion is useful for inspecting the sequence, while collapse keeps the circuit readable; neither action changes the gate’s computation.

Save, Auto-Layout, and Notes

The editing toolbar sits above the circuit canvas:

Circuit editing toolbar

Numbers in the figure correspond to:

  1. Auto layout: arrange the gates in the current circuit.
  2. Save Gate: save a gate combination for reuse.
  3. Save Experiment: save the circuit experiment.
  4. Run: execute the current circuit. The screenshot shows an empty circuit, so this button is disabled.

The toolbar also adds or removes qubits and resets the circuit. Use composite-gate expansion, collapse, and notes to organize circuits for reuse or collaboration.

Probability, Amplitude, and Density Matrix

Below the canvas are Step inspection, Probability and amplitude, and Probability density matrix.

Step inspection and result expansion controls

Numbers in the figure correspond to:

  1. Step Inspector: use the adjacent slider to inspect circuit steps. The empty circuit currently shows 0/0.
  2. Expand probability and amplitude: enlarge the left result view, which displays basis states, probabilities, amplitude magnitudes, and phases.
  3. Expand density matrix: enlarge the matrix on the right.

This screenshot shows the initial four-qubit state with no gates: |0000⟩ has probability 100% and amplitude magnitude 1. After editing or running a circuit, inspect the resulting views.

Suggestions

  • Start with an experiment case and inspect its result before modifying it.
  • For a clear natural-language goal, ask AI for a draft and review it in the editor.
  • Use code for precise control, then check the circuit and results.
Last updated on