Quantum Computation Library
Project description
QCOM
Quantum Computation (QCOM) is a Python package originally developed as part of Avi Kaufman’s 2025 honors thesis, and now maintained as an ongoing project for quantum systems research.
QCOM offers a lightweight, extensible toolkit for building model Hamiltonians, evolving states, and analyzing classical/quantum information measures from simulated or experimental bitstring data.
📦 Installation
pip install QCOM
Upgrade to the latest release:
pip install --upgrade QCOM
⸻
✅ Quick check in python
import qcom
print("QCOM version:", qcom.__version__)
⸻
✨ Core Capabilities
-
Hamiltonians
- Exact builders for Rydberg systems (chains/ladders)
- (Growing set) utilities to support additional models
-
Solvers
- Static: thin-spectrum eigen solve, ground-state utilities, dense full spectrum for small systems
- Dynamic: generic time evolution under time-dependent Hamiltonians via matrix exponentials
-
Metrics
- Classical: Shannon entropy, conditional entropy, mutual information
- Quantum: von Neumann entanglement entropy (from state vectors, density matrices, or Hamiltonians)
- Probability tools: cumulative distributions, N(p) diagnostic, statevector → probabilities
-
Data & Noise
- Parse/normalize/sample binary datasets (Plaintext, Parquet, Aquila JSON)
- Readout noise models (bit-flip) and optional mitigation via
mthree
-
I/O
- Save/load in plaintext and Parquet
- Lightweight JSON reader for QuEra Aquila results
-
Developer Ergonomics
ProgressManagerhooks for long tasks- Clear conventions (MSB ↔ site 0), endianness controls where relevant
🚀 Examples
- Build a ladder Rydberg Hamiltonian and compute its ground-state entropy
- Parse measurement data (e.g., from Aquila) and evaluate mutual information
- Simulate readout error on a probability distribution and apply mitigation
- Sample and merge large bitstring datasets for statistical analysis
📚 Tutorials
Step-by-step notebooks live in the repository:
- Tutorials directory:
https://github.com/AviKaufman/QCOM/tree/main/tutorials
Suggested order:
- I/O basics (text, JSON, Parquet)
- Lattice registers and geometry
- Rydberg Hamiltonians
- Static eigen solvers (ground states)
- Control time series
- Dynamic time evolution
- Data utilities (noise, sampling, mitigation)
- Metrics (classical + entanglement)
🧪 Testing
From the project root:
pytest
# or restrict to the project tests folder
pytest tests/
If you see an “import file mismatch” error, clear caches:
find . -name "__pycache__" -type d -exec rm -rf {} +
find . -name "*.pyc" -delete
⸻
📂 Example Data
Curated toy datasets for quick experiments:
⸻
🗺️ Roadmap
- New Hamiltonians: Ising, Heisenberg, and additional lattice models
- Parameter sweeps for large optimization workloads
- Tensor-network methods: DMRG / TEBD for large Hilbert spaces
- Expanded I/O readers and richer plotting presets
Community feedback helps shape priorities—feel free to open issues or PRs.
⸻
🤝 Contributing
We welcome contributions of all sizes: • Bug reports, minimal reproductions • Tests and doc improvements • New examples/tutorials • Feature proposals via GitHub Issues
Repo: https://github.com/AviKaufman/QCOM
⸻
📬 Contact
Avi Kaufman — avigkaufman@gmail.com
⸻
Last updated: October 15, 2025
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qcom-0.2.1.tar.gz.
File metadata
- Download URL: qcom-0.2.1.tar.gz
- Upload date:
- Size: 62.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adb78a38a637e5bb9544550531c6295088b4b32ed9dfb683edabe5299694456b
|
|
| MD5 |
665b85b29eac09dc6f1246abdc7bf8bf
|
|
| BLAKE2b-256 |
c88f558bac9c9506759b1fce85c446092c897d76e36922b9f3b08c627c46479f
|
Provenance
The following attestation bundles were made for qcom-0.2.1.tar.gz:
Publisher:
python-publish.yml on AviKaufman/QCOM
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qcom-0.2.1.tar.gz -
Subject digest:
adb78a38a637e5bb9544550531c6295088b4b32ed9dfb683edabe5299694456b - Sigstore transparency entry: 609552418
- Sigstore integration time:
-
Permalink:
AviKaufman/QCOM@d14f94c843cca2c470eac44c407c1a75c6a0f943 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/AviKaufman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d14f94c843cca2c470eac44c407c1a75c6a0f943 -
Trigger Event:
release
-
Statement type:
File details
Details for the file qcom-0.2.1-py3-none-any.whl.
File metadata
- Download URL: qcom-0.2.1-py3-none-any.whl
- Upload date:
- Size: 73.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c600236570731eb1c232bf003a304db4906880298d4d4da78fa6dbaf6ad35c9
|
|
| MD5 |
8f8cdf2ed1009cff085263b5b423fbfd
|
|
| BLAKE2b-256 |
b0111657a0b5d055a69a473e10df53fe2bbebbb7f9e37276d1ce2ed90c72bcd5
|
Provenance
The following attestation bundles were made for qcom-0.2.1-py3-none-any.whl:
Publisher:
python-publish.yml on AviKaufman/QCOM
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qcom-0.2.1-py3-none-any.whl -
Subject digest:
6c600236570731eb1c232bf003a304db4906880298d4d4da78fa6dbaf6ad35c9 - Sigstore transparency entry: 609552753
- Sigstore integration time:
-
Permalink:
AviKaufman/QCOM@d14f94c843cca2c470eac44c407c1a75c6a0f943 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/AviKaufman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d14f94c843cca2c470eac44c407c1a75c6a0f943 -
Trigger Event:
release
-
Statement type: