Skip to main content

Circuit Editor Interface

Learn how to use LeafSheep QVU's circuit editor effectively.

Editor Layout

Overview of the editor interface showing main components

The editor is divided into five main sections:

Circuit Canvas (Center)

  • Main workspace for building circuits
  • Qubit lines shown horizontally
  • Time flows left to right
Circuit canvas

Gate Palette (Left)

  • Contains all available quantum gates

    Gate palette

Console Panel (Right)

  • Simulation controls
  • Configuration options
Console panel

Results Panel (Bottom)

  • Results display
  • Exports the results to a csv file.

See Running Simulations for interpreting results.

Results panel

Code Display (Right)

  • Displays the code for creating the circuit with qiskit
Code display

Managing Qubits

Adding and Removing Qubits

  • Click '+' on bottom of the circuit canvas to add a new qubit
  • Click '-' on the left side of each qubit line to remove the qubit and the gates on it.
  • Maximum of 10 qubits allowed
note

Qubits are numbered from top to bottom, starting at 0.

Working with Gates

Adding Gates

  1. Select a gate from the palette
  2. Drag it onto a qubit line
  3. Gates snap to grid automatically
  4. Release to place the gate

See Quantum Gates

Removing Gates

  • Click on the gate and press the delete or backspace key on your keyboard.
  • All controls will be removed if the gate is removed.

Adding Controls

For gates that support controls:

  1. Hover over the placed gate
  2. Click and drag from the control point (top and bottom of the gate)
  3. Drop on target qubit line

Removing Controls

  • Click on the control point and press the delete or backspace key on your keyboard.
note

Check the quantum gates documentation to see which gates support controls.

Setting Parameters

For parameterized gates:

  1. Select the gate
  2. Hover to open parameter panel
  3. Enter values (-2 to 2, multiplied by π)

See Quantum Gates for more information.

Screenshot showing gate parameter panel with input field

Circuit Operations

Basic Controls

  • Undo: Ctrl+Z (Cmd+Z on Mac)
  • Redo: Ctrl+Y (Cmd+Y on Mac)
  • Save: Ctrl+S (Cmd+S on Mac)

Validation

The editor automatically checks for:

  • Invalid gate combinations
  • Incorrect control connections
  • Parameter range violations
tip

Watch for warning indicators that appear when circuit issues are detected.