Skip to main content

I-QMapper

Interactive, calibration-aware qubit layout selection for IBM Quantum processors.

tests PyPI arXiv

I-QMapper is a Jupyter application that displays a quantum processor's calibration data on its physical topology, tracks how that data changes over time, and places circuits — in particular the LUCJ ansatz used in quantum chemistry — on the qubits where they are expected to run best. Every placement decision is visible and reproducible: the device, its calibration history and the candidate layouts are shown in one view, and each candidate is ranked by an explicit quality score.

Installation

pip install i-qmapper
Extra Adds Install
png PNG export of the map (kaleido) pip install "i-qmapper[png]"
timelapse GIF/MP4 export of calibration history pip install "i-qmapper[timelapse]"
benchmark On-device benchmarking (qiskit-experiments) pip install "i-qmapper[benchmark]"

Extras can be combined, e.g. "i-qmapper[png,benchmark]".

Requirements: Python 3.10 or later, JupyterLab or Jupyter Notebook, and an IBM Quantum account whose credential is saved locally with qiskit-ibm-runtime:

from qiskit_ibm_runtime import QiskitRuntimeService
QiskitRuntimeService.save_account(channel="ibm_quantum_platform",
                                  token="YOUR_TOKEN", instance="YOUR_CRN",
                                  set_as_default=True, overwrite=True)

I-QMapper reads this credential through qiskit-ibm-runtime; it does not store or transmit the token itself. Several credentials can be saved under different name= values and selected from the application.

Quick start

from iqmapper import run
run()
  1. In the connection panel, Load Account (leave the account name blank for the default credential), select the backend, then Connect & Launch.
  2. The map shows the processor with the selected calibration property as a colour scale; hover a qubit or coupler for its values.
  3. Choose the LUCJ mode and the number of spatial orbitals, then Generate LUCJ Layout. The candidates are listed with their quality score (LQS) and drawn on the map; the Estimated Layout-Quality panel gives the score of the current layout.
  4. Use the calibration section to view earlier calibrations and the change since a chosen reference, and the stability check to see which qubits have remained reliable over the last 7, 14 or 30 days.
  5. Export the layout as JSON, Qiskit code, PNG, or save the whole session.

A step-by-step walkthrough is in the tutorial.

Capabilities

Calibration map Readout error, two-qubit gate error, T1, T2 and the other reported properties on the device topology, for the current calibration or any cached earlier one.
History and drift Intraday snapshots, multi-day history, and difference views against a chosen reference calibration.
Stability check Per-qubit reliability across a 7-, 14- or 30-day window, used to exclude qubits that score well today but drift.
Layout quality score (LQS) A product-form estimate built from readout and two-qubit gate errors of the qubits and couplers a circuit uses. Used to rank candidates before any QPU time is spent.
Automatic LUCJ placement An exhaustive subgraph search and a calibration-guided search run together; for every ancilla count the best candidates of both are kept.
Several circuits on one processor Joint placement of multiple circuits with a configurable buffer between them; complete plans are ranked by their combined score.
Several processors The same search on every accessible backend, ranked, with a one-step transfer of a layout to a second processor.
On-device benchmarking (optional) Re-measurement of readout, gate errors and coherence on the chosen qubits, fed back into the map and the ranking as a separate calibration epoch. Never automatic; cost shown before the run.
Import and export Layouts from JSON, .npy or QPY; export to PNG, GIF/MP4, JSON, Qiskit code and full session files.

Repository layout

Path Contents
iqmapper/ The application: connection and calibration cache, device map, layout search engines, scoring, benchmarking, session state
iqmapper/ui/ The Jupyter interface (ipywidgets panels)
iqmapper/export/ Layout quality score, layout import/export, code generation, PNG export
tests/ Offline test suite; no IBM account required
docs/ Reference page and images
TUTORIAL.md Step-by-step walkthrough
CHANGELOG.md Release history

A module-by-module description is in CODE_OVERVIEW.md.

Supported processors

The device map covers the 156-qubit IBM Heron (r2, r3) and the 120-qubit IBM Nighthawk processors. Other backends are listed in the multi-processor scans as not supported and are not searched.

Documentation

  • Tutorial — from launch to an exported layout.
  • Reference — settings, search options, messages, the quality score, and on-device benchmarking.
  • Code overview — architecture and modules.
  • Changelog

Citing

If you use I-QMapper in your research, please cite:

M. Bazayeva, K. M. Merz Jr., I-QMapper: Error-Aware Layout Optimization and Device Diagnostics for NISQ Hardware, arXiv:2606.27508 (2026). https://arxiv.org/abs/2606.27508

Works used

  1. M. Motta, K. J. Sung, K. B. Whaley, M. Head-Gordon, J. Shee, Chem. Sci. 14, 11213 (2023). The LUCJ ansatz.
  2. P. D. Nation, M. Treinish, PRX Quantum 4, 010327 (2023). Cost function followed by the layout quality score (mapomatic).
  3. K. J. Sung et al., arXiv:2605.03123 (2026). The LUCJ layout scorer was adapted from code now part of ffsim.

License

Apache License 2.0; see LICENSE and NOTICE.

Metadata

Release files for i-qmapper 0.1.0

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

Source distribution (sdist)

Source distribution for i-qmapper 0.1.0
File Size Uploaded Provenance Actions
i_qmapper-0.1.0.tar.gz 542.6 kB Without provenance Details for i_qmapper-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for i-qmapper 0.1.0
File Interpreter ABI Platform Actions
i_qmapper-0.1.0-py3-none-any.whl Python 3 none any Details for i_qmapper-0.1.0-py3-none-any.whl

Total release size: 920.4 kB

Release files / i_qmapper-0.1.0.tar.gz

Download URL i_qmapper-0.1.0.tar.gz
Size 542.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7ff0c2fae1ab101ac9dd8118a55b1f8aba0c2ea12d9277f6a6095b92e2c84a7b
BLAKE2b-256 checksum
How to use checksums
46afba974a0e627d5a92ebb915bb9fd90176c64597d6058aeda9e94a31181067
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release files / i_qmapper-0.1.0-py3-none-any.whl

Download URL i_qmapper-0.1.0-py3-none-any.whl
Size 377.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f78af5980806eb4de18ab823972fb9e3caef4ceb99e1a6455aa919d12ff990c
BLAKE2b-256 checksum
How to use checksums
9437b8ac8dee75392cdf4ec3e914b3ddff1c08cc90900228a13877075341e143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Security for i-qmapper 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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