CLI Reference¶
qgate includes a command-line interface powered by typer.
Commands¶
qgate version¶
Print the installed version.
qgate validate <config.json>¶
Validate a GateConfig JSON file.
qgate run <config.json>¶
Run a trajectory filter.
$ qgate run config.json --adapter mock --seed 42
variant=score_fusion shots=1024 accepted=950 P_acc=0.9277 TTS=1.08
$ qgate run config.json --adapter mock --output results.jsonl
📝 Logged to results.jsonl
$ qgate run config.json --adapter mock --error-rate 0.1 --quiet
variant=score_fusion shots=1024 accepted=876 P_acc=0.8555 TTS=1.17
Options:
| Flag | Default | Description |
|---|---|---|
--adapter, -a |
mock |
Adapter: mock, qiskit, cirq, pennylane |
--output, -o |
None | Log file (.jsonl, .csv, .parquet) |
--seed, -s |
None | Random seed (mock adapter) |
--error-rate, -e |
None | Override mock adapter error rate (0.0–1.0) |
--verbose, -v |
off | Enable DEBUG logging |
--quiet, -q |
off | Suppress INFO logging (WARNING only) |
qgate adapters¶
List all registered adapters (built-in and entry-point plugins).
$ qgate adapters
mock MockAdapter (built-in)
qiskit QiskitAdapter
cirq CirqAdapter (stub)
pennylane PennyLaneAdapter (stub)
qgate schema¶
Print the JSON Schema for GateConfig.