#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-24)Highest wire index is MaxQubits − 1. The state vector needs 16 bytes per amplitude, so 24 qubits use 256 MB; above about 12 qubits the probability panels list the most likely outcomes and the density matrix view keeps the first 10 wires.
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.
ShowConditionalBranches"none"none | some | allIf/else markers on the circuit. none hides them, some shows branches that contain gates, all shows every marker.
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.
NmrSample"chloroform"sample keySpin system for the NMR Analysis tab. Keys are listed on the NMR sample library page.
NmrField11.74teslaStatic field B0 for the NMR Analysis tab (500 MHz for protons).
NmrRf0.587milliteslaRF field amplitude B1; sets pulse lengths (0.587 mT is a 10 µs proton 90° pulse).
NmrT12secondsLongitudinal relaxation time used for acquisition lengths on the NMR tab.
NmrT21secondsTransverse relaxation time; sets the line width 1/(πT2) on the NMR tab.
NmrPulseShape"square"square | gaussian | sinc | hermiteEnvelope drawn and timed for RF pulses on the NMR tab.
NmrReadout"pulse"pulse | none"pulse" applies a 90° readout pulse before acquisition; "none" acquires the state as it is.
NmrChannel(first isotope)isotopeWhich isotope the receiver listens to, for example 1H or 13C.

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 ShowConditionalBranches "none"
#settings ShowEvaluatedLabels true
#settings GateParamAngleUnit "degrees"
#settings CodeAngleUnit "piradians"
#settings SymbolicNotation false
#settings HideNegligibles true
#settings SortBy "probability"
#settings SortOrder "desc"
#settings NmrSample "chloroform"
#settings NmrField 11.74
#settings NmrRf 0.587
#settings NmrT1 2
#settings NmrT2 1
#settings NmrPulseShape "square"
#settings NmrReadout "pulse"
#settings NmrChannel (first isotope)

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.