Skip to content

CLI Overview

Metriq-Gym provides a command-line interface (mgym) for dispatching, monitoring, and uploading quantum benchmark results.

Installation

The CLI is installed automatically with metriq-gym:

pip install metriq-gym

Command Structure

mgym <resource> <action> [arguments] [options]

Resources: - job - Individual benchmark jobs - suite - Collections of benchmark jobs

Quick Reference

Command Description
mgym job dispatch Dispatch a benchmark job to a quantum device or simulator.
mgym job estimate Estimate provider usage as a proxy for job costs before dispatching.
mgym job poll Poll job status and retrieve results when complete.
mgym job view View job details and metadata.
mgym job delete Delete a job from the local database.
mgym job upload Upload job results to GitHub via pull request.
mgym suite dispatch Dispatch a suite of benchmark jobs to a quantum device.
mgym suite estimate Estimate provider usage as a proxy for costs across a suite or selected components.
mgym suite poll Poll suite jobs and retrieve results when complete.
mgym suite view View jobs in a suite.
mgym suite delete Delete all jobs in a suite from the local database.
mgym suite upload Upload suite results to GitHub via pull request.

Jobs dashboard

A local web UI over the same job database and CLI actions:

mgym dashboard [--port 8787]

Then open http://localhost:8787 to see job lifecycle status, per-device suite coverage, and poll/upload/delete buttons.

Getting Help

# Main help
mgym --help

# Job commands help
mgym job --help

# Specific command help
mgym job dispatch --help