Quantum State Tomography (qtomos)
Quantum State Tomography is the process of completely characterizing the quantum state of a system by performing a series of measurements on identical copies of the state. It allows us to mathematically reconstruct the density matrix, which fully describes the system.
This toolset is specifically designed for SpinQ NMR quantum computers and has been successfully tested on the Triangulum (3-qubit) system.
Quantum State Tomography is generally a two-phase process:
- Data Acquisition: Run quantum circuits on a simulator or real hardware to gather measurement statistics for a complete set of observables. In this toolset, we specifically use the complete set of tensor products of the non-identity Pauli matrices ($X, Y, Z$).
- State Reconstruction: Use the acquired measurement data to mathematically reconstruct the density matrix of the quantum state.
Features
- Multi-backend support: Run acquisitions seamlessly on a simulator (
sim) or directly on actual quantum hardware (qpu). - Granular Control: Measure single observables (e.g.,
XX) or effortlessly execute an automated sequence covering all permutations for full tomographic reconstruction. - Customizable Circuits: Dynamically load pre-defined state preparation circuits (GHZ, Phi+, W, Random) from the catalog or define your own.
- Structured JSON Output: Measurements are paired with timestamps, counts, runtime configurations, and the compiled QASM logic.
Quickstart
You can install qtomos directly from PyPI:
pip install qtomos
Documentation
Depending on your use case, refer to the following dedicated guides:
- 📖 CLI Usage Guide: Learn how to perform tomography directly from your terminal using the
acquirecommand. - 📓 Jupyter Notebook Guide: Learn how to import and use the programmatic APIs within Python scripts and Jupyter Notebooks.
- 🛠️ Developer Guide: Learn how to set up the repository for local development, run tests, and understand the project structure.
Metadata
Release files for qtomos 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qtomos-0.1.6.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qtomos-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / qtomos-0.1.6.tar.gz
| Download URL | qtomos-0.1.6.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1b7ace0edbce1186f73e38af6e856486c8c52cd08afeeeb3218adb277deb420
|
|
BLAKE2b-256 checksum How to use checksums |
29689f2994234a56b8c02780b42378bb9afed54b7bf455cda1167a0add59a290
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / qtomos-0.1.6-py3-none-any.whl
| Download URL | qtomos-0.1.6-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c781f142c4da6781a9977bbc006d250b4c4806815ecfa4b8056afee185a43e3a
|
|
BLAKE2b-256 checksum How to use checksums |
a4bef98882d2af7a2346e6534f9c3d52f35b9db2a83e4177336a070699ac7135
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency log