Command line¶
The cc4q console script mirrors the Python API one-to-one. Every
subcommand works standalone; run cc4q <command> --help for the exact
option list of the installed version.
cc4q --help
cc4q build --help
Commands¶
Command |
Main options |
Purpose |
|---|---|---|
|
|
Download/SHA256-verify/extract the released checkpoints. |
|
|
Clone/scan a repository and write |
|
|
Label an SCCU corpus on both quantum axes. |
|
|
Random, stratified, or quota sampling over JSONL. |
|
|
Prepare/launch the annotation UI. |
|
|
Fine-tune one classifier. |
|
|
Human-vs-model agreement, kappa, precision/recall, Wilson 95% CI, and per-repository breakdown. |
|
|
Launch the Workbench with reviewer quick-start defaults. |
|
|
Serve the Workbench on the given interface/port. |
End-to-end example¶
cc4q download-models
cc4q build --repo https://github.com/qiskit-community/qiskit-algorithms \
--include-dir qiskit_algorithms --output-dir out/algorithms
cc4q predict --input out/algorithms/sccus_segmented.json \
--output out/algorithms/labeled.jsonl
cc4q sample --input out/algorithms/labeled.jsonl --by SDK --n 200 \
--output out/algorithms/sample.jsonl
cc4q annotate --data out/algorithms/sample.jsonl \
--labels quantum,non-quantum --mode adjudicate \
--predictions out/algorithms/labeled.jsonl \
--output-dir out/algorithms/ann
cc4q evaluate --annotations exp/spotcheck_annotation.csv \
--key exp/spotcheck_answer_key.jsonl \
--contaminated 1,8,16,25,62,132
Note
--key expects a JSONL whose records carry an id column (matching
--id-join, default no) and a model_label/label field.
--contaminated accepts a comma-separated list of ids to exclude
from evaluation (for example units that were part of training). The
equivalent Python option is contaminated=... in
cc4q.evaluate.evaluate_files().