Skip to main content

Quantum Computation Library

Project description

QCOM

PyPI version Python versions License: MIT

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

    • ProgressManager hooks 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:

Suggested order:

  1. I/O basics (text, JSON, Parquet)
  2. Lattice registers and geometry
  3. Rydberg Hamiltonians
  4. Static eigen solvers (ground states)
  5. Control time series
  6. Dynamic time evolution
  7. Data utilities (noise, sampling, mitigation)
  8. 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: December 9, 2025

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qcom-0.2.2.tar.gz (62.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qcom-0.2.2-py3-none-any.whl (74.1 kB view details)

Uploaded Python 3

File details

Details for the file qcom-0.2.2.tar.gz.

File metadata

  • Download URL: qcom-0.2.2.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qcom-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c8773673b0b52f10684a64a0d503dbc90dffa663ff569e149130e0b0cb5d5f9f
MD5 9d45155b949ca23d5b141c05a5572cc5
BLAKE2b-256 2aa7c2c7c00aadf9ec1f7b8a745cb3833f0e6ad0dd7f99bcc558bb53453148d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qcom-0.2.2.tar.gz:

Publisher: python-publish.yml on AviKaufman/QCOM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qcom-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: qcom-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 74.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qcom-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 46dc77d394e569e4ba8601227126867729f8aa9a3535c9910bc47b859ab8a073
MD5 6561f97edbb5ca5a804b844a5fabdf6a
BLAKE2b-256 8049bdce2a52186f1087d3ab9bb80d3e935672794f5ae07d832f7070ce6b29fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for qcom-0.2.2-py3-none-any.whl:

Publisher: python-publish.yml on AviKaufman/QCOM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page