#settings

Per-file simulator options. Each line overrides one key; omitted keys keep their defaults. The Settings modal and gear menu write the same lines back into your source when you save.

Reference

KeyDefaultTypeWhat it does
Scheduling"always"enumGate packing mode. See Scheduling.
MaxQubits12int (2-20)Highest wire index is MaxQubits − 1.
VisibleQubits2intHow many qubit rows the circuit builder shows.
Zoom100%percent or multiplierCircuit builder zoom: 50%, 1, 1.5, 2.
AutoAdjustVisibleQubitstrueboolGrow visible rows when code uses higher indices.
DecimalPlaces2int (0-12)Digits for amplitudes and probabilities.
AutoRuntrueboolRe-run the circuit when code changes.
UseOptimizedGatestrueboolUse optimized decompositions where available.
UseOptimizedSweeptrueboolFaster sweep runs when stepping combos or running the full sweep batch.
StepByStepfalseboolCircuit builder step scrubber and play controls.
ShowGateParamstrueboolAngle labels on rotation tiles.
ShowEvaluatedLabelstrueboolShow evaluated LOOP counts and wire lists on blocks.
GateParamAngleUnit"degrees"degrees | radians | piradiansUnit for labels drawn on gates.
CodeAngleUnit"piradians"degrees | radians | piradiansDefault unit for bare numbers in source code.
SymbolicNotationfalseboolPrefer √(½) style in state displays.
HideNegligiblestrueboolDrop near-zero amplitudes from the state vector.
SortBy"probability"probability | labelBasis-state sort key.
SortOrder"desc"asc | descSort direction for basis states.

Full header example

Only non-default lines need to appear in practice - the block below shows every key for copy/paste:

#settings Scheduling "always"
#settings MaxQubits 12
#settings VisibleQubits 2
#settings Zoom 100%
#settings AutoAdjustVisibleQubits true
#settings DecimalPlaces 2
#settings AutoRun true
#settings UseOptimizedGates true
#settings UseOptimizedSweep true
#settings StepByStep false
#settings ShowGateParams true
#settings ShowEvaluatedLabels true
#settings GateParamAngleUnit "degrees"
#settings CodeAngleUnit "piradians"
#settings SymbolicNotation false
#settings HideNegligibles true
#settings SortBy "probability"
#settings SortOrder "desc"

Scheduling

See the dedicated Scheduling page. Quick version: "always" packs gates aggressively; "never" puts every gate in its own column.

StepByStep

Off by default. When true, the circuit builder shows the step scrubber, play button, and editable step counter (0 / N through N / N). Data Analysis always has its own step timeline regardless of this flag.