Skip to main content

qia-check

Heuremen LLC · https://indahl.ai/qia

Checks on IBM Quantum calibration figures before a run and after it. Your files are opened read-only and never changed. Reports go to a separate folder. Run on saved files, the checker sends nothing anywhere. Only the --pull option contacts IBM, with your own saved account, and only when you run it. Python 3.9 or later, standard library only.

Install

pip install qia-check

For the --pull option, which saves the live record from IBM, add the optional IBM client:

pip install "qia-check[ibm]"

The tool is then the command qia-check. It is also importable as the module qia_check.

Before a run

  1. Save the record you are about to run under. This needs the IBM client (pip install "qia-check[ibm]") and a saved IBM Quantum account. Let the checker do it: qia-check before --pull ibm_kingston Or save it yourself with QiskitRuntimeService().backend('ibm_kingston').properties().to_dict() written out as JSON.
  2. Check it: qia-check before record.json --at 2026-11-01T12:00:00Z --qubits 0,1,5 --at is your run time. Without it, the time of the check is used. Every figure the checker reads is aged against both the record's stamp and the run time. Flags: STALE (T1, T2, readout_error, prob_meas0_prep1, prob_meas1_prep0 or init_error measured more than 24 hours before the stamp or the run), ZERO (an error value of 0), TINY (a nonzero error value below 1e-6), FUTURE (a figure dated after its record's stamp), T2>2T1, and PAIR (T1 and T2 measured more than 24 hours apart). UNKNOWN marks anything that cannot be read: an absent, null, NaN, zero or negative T1 or T2, a negative error value, an unknown unit, an unreadable date, a date with no zone, conflicting duplicate entries, or a qubit with no figures. UNKNOWN is never a pass. The page opens with the number of flag rows and UNKNOWN rows. A page where nothing was checked says so, and the command exits with code 2. A record stamp with no zone is refused. Gates and zz are not read.
  3. Read the Guards before the work: pip install faultsguards, then python -m faultsguards guards

After a run

  1. Save the record again after the run, into the same folder as the first. Keep reports in a different folder.
  2. qia-check after records/ --start 2026-11-01T12:00:00Z --end 2026-11-01T12:40:00Z --qubits 0,1,5 Times are UTC, written with Z or an offset. The report names the latest record in the folder stamped at or before the start, checks it and every record stamped during the run with the same checks as before mode, and lists each change in the figures from one record to the next. A folder that mixes backends is refused unless --backend NAME picks one. Two files with the same stamp whose figures differ (value, date or unit of a field the package reads) are both checked and their differences are listed as a conflict. Files that differ only in other content are read once. If no record precedes the start, the records stamped during the run are still checked and the page says the record in force is missing.
  3. Read your write-up against the Faults: python -m faultsguards faults

The rest of the QIA package

The full package adds the YO record reader, the same-job T1 and T2 measurement, the check block and the paper. It is at https://indahl.ai/qia/package

How this was tested

See TESTED.md in the source distribution, installed under share/doc/qia-check/, and published at https://indahl.ai/qia/package

Terms

Heuremen LLC permits anyone to run, copy and change the code in this package, for any purpose, with attribution to Heuremen LLC and https://indahl.ai/qia

Your results remain yours. The text and data follow LICENSE, and their use to train, fine-tune or build AI models is not permitted.

Exit codes and folders

The command exits with code 0 when it wrote a report that checked at least one qubit. It exits with code 2 when nothing was checked (no qubit asked for is in the record, or no record of the backend covers the run). It exits with code 1 when it refuses: a record file that is missing or cannot be read, a record stamp with no zone (before mode), a folder that mixes backends without --backend, a time it cannot read, or an --out folder that is the record's own folder (before mode) or the records folder itself (after mode). A subfolder is allowed. In after mode, a file in the folder that cannot be read as a record (including one whose stamp has no zone, an unopenable file or a bad .gz) is skipped and named on the page, and the rest are read. A skipped file is not a pass, even when the page shows no flag and the exit code is 0. In before mode the same problems with the one record file are a refusal (exit 1). --pull is ignored, with a note, when a record file is also given.

What a clean page means

A clean page has 0 flag rows, 0 UNKNOWN rows and no skipped file. It means no flag fired in the fields the package reads: T1, T2, readout_error, prob_meas0_prep1, prob_meas1_prep0 and init_error, per qubit, with their dates and units. A page with UNKNOWN rows is not clean and says so, even when its exit code is 0. A clean page says nothing about gates, zz couplings, other fields, or your results. Notes on the page (records not used, a conflict) are worth reading even when no flag fired. The "unit only, same value" label allows a relative difference up to 1e-9, so a value exactly at that edge can fall either side of it.

Metadata

Release files for qia-check 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qia-check 1.0.1
File Size Uploaded Provenance Actions
qia_check-1.0.1.tar.gz 14.4 kB Without provenance Details for qia_check-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qia-check 1.0.1
File Interpreter ABI Platform Actions
qia_check-1.0.1-py3-none-any.whl Python 3 none any Details for qia_check-1.0.1-py3-none-any.whl

Total release size: 31.1 kB

Release files / qia_check-1.0.1.tar.gz

Download URL qia_check-1.0.1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7110d2417750dae8360f70c867edf484496296619d0d662c18deb03d546a0207
BLAKE2b-256 checksum
How to use checksums
3956b0ff7984e20ce5481e8924be0aed9603935389b93274ab974d3f153008ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qia_check-1.0.1-py3-none-any.whl

Download URL qia_check-1.0.1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f26e8792a8756261e8ba96938e1907ec251f81ba8badb718fbdeb199e1b859d
BLAKE2b-256 checksum
How to use checksums
8a49edcb4b50471deecfc6ca2ee8ccc5c440bba4ac6a23a32b7ec1aabd251db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for qia-check 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page