Suite Commands¶
Commands for dispatching, monitoring, and managing benchmark suites.
dispatch¶
Dispatch a suite of benchmark jobs to a quantum device.
Arguments¶
| Argument | Type | Description | Required |
|---|---|---|---|
SUITE_CONFIG |
STR | Path to suite configuration file or bundled suite name | Yes |
Options¶
| Option | Type | Description | Default |
|---|---|---|---|
--provider, -p |
STR | Provider name (e.g., ibm, aws, azure, ionq, local; braket aliases aws) | None |
--device, -d |
STR | Device identifier | None |
--component, -c |
LIST | Component to dispatch; repeat the option to select multiple components | None |
--all |
BOOL | Explicitly dispatch every component, including guarded full suites | False |
Bundled suites and JSON files¶
The suite argument accepts either a path to a JSON file or the name of a suite
bundled with metriq-gym. For example, metriq_score_1_0 resolves to the
versioned Metriq Score 1.0 definition from any working directory.
Dispatch selected components¶
Use --component (or -c) to dispatch one component and all of its configured
scale points:
The option is repeatable:
Unknown or repeated component names are rejected before provider initialization.
Dispatch a complete guarded suite¶
Some suite definitions require an explicit --all opt-in before every
configured job is dispatched:
Without --component or --all, a guarded suite prints its runtime and cost
warning, lists the available components, and exits before provider
initialization.
See Metriq Score 1.0 Suite for the versioned component and scale-point reference.
poll¶
Poll suite jobs and retrieve results when complete.
Arguments¶
| Argument | Type | Description | Required |
|---|---|---|---|
SUITE_ID |
STR | Suite ID to poll | No |
Options¶
| Option | Type | Description | Default |
|---|---|---|---|
--json |
STR | Export results to JSON file | None |
--no-cache |
BOOL | Ignore locally cached results and refetch | False |
Export results to JSON¶
Write the suite's completed results to a file:
The file contains a JSON array in suite job order. Each record uses the same
format as a completed job in mgym suite upload, including metadata, parameters,
results, and a UTC timestamp. Without --json, results are displayed as a table.
Failed jobs are reported and skipped. If any job is still pending, or no completed jobs remain, no file is written.
view¶
View jobs in a suite.
Arguments¶
| Argument | Type | Description | Required |
|---|---|---|---|
SUITE_ID |
STR | Suite ID to view | No |
delete¶
Delete all jobs in a suite from the local database.
Arguments¶
| Argument | Type | Description | Required |
|---|---|---|---|
SUITE_ID |
STR | Suite ID to delete | No |
upload¶
Upload suite results to GitHub via pull request.
Arguments¶
| Argument | Type | Description | Required |
|---|---|---|---|
SUITE_ID |
STR | Suite ID to upload | No |
Options¶
| Option | Type | Description | Default |
|---|---|---|---|
--repo |
STR | Target GitHub repo (owner/repo) (env: MGYM_UPLOAD_REPO) |
unitaryfoundation/metriq-data |
--base |
STR | Base branch for the PR (env: MGYM_UPLOAD_BASE_BRANCH) |
main |
--dir |
STR | Directory in repo for the JSON file (env: MGYM_UPLOAD_DIR) |
None |
--branch |
STR | Branch name for the PR | None |
--title |
STR | Pull request title | None |
--body |
STR | Pull request body | None |
--commit-message |
STR | Commit message | None |
--clone-dir |
STR | Working directory to clone into (env: MGYM_UPLOAD_CLONE_DIR) |
None |
--dry-run |
BOOL | Do not push or open a PR; print actions only | False |
Jobs in the suite that failed (dispatch raised, or the provider reported a failure)
are included as outcome: "error" records with the captured error, so one failed
benchmark does not block the upload. Jobs that are still pending do.