Skip to main content

AriQuantum 🌌

A simple quantum computing simulation library with an intuitive interface.
Perfect for students and beginners in quantum computing — no complex dependencies or noise models, just core operations and visualization.

PyPI version PyPI Downloads License: MIT Python 3.9+


Installation

Requires Python 3.9+ and numpy:

pip install ariquantum

Quick Start

1. Working with individual qubits

from ariquantum.qubit import Qubit

# Create qubits in different initial states
q0 = Qubit('0')
q_plus = Qubit('+')

# Display states in Dirac bra-ket notation
print(q0.as_bracket_string())     # |0⟩
print(q_plus.as_bracket_string()) # 0.70711|0⟩ + 0.70711|1⟩

2. Quantum circuits and visualization

from ariquantum.quantum_register import QuantumRegister

qr = QuantumRegister(2)  # 2-qubit register

# Apply gates: H on qubit 0, CX between 0 and 1
qr.h(0)
qr.cx(0, 1)

# Display state and circuit diagram
print(qr.as_bracket_string())
# 0.7071|00⟩ + 0.7071|11⟩

qr.draw_circuit()
#       ┌───┐       
# q0 : ─│ H │───●─── :
#       └───┘   │
#             ┌─┴─┐
# q1 : ───────│ X │─ :
#             └───┘

3. Measurements

qr.measure(qubits=[0, 1])  # Deferred measurement
print(qr.get_counts(shots=100))
# Example output: {'11': 53, '00': 47}

Key Features

  • Flexible control: Manage individual qubits or full quantum registers.
  • Circuit visualization: Auto-generated ASCII diagrams of quantum circuits.
  • Bra-ket notation: Human-readable state representation (e.g., 0.7|00⟩ + 0.7|11⟩).
  • Measurements: Support for deferred execution with customizable shot counts.

Project Structure

ariquantum/
├── __init__.py
├── build_operator.py    # Building operators for multi-qubit systems
├── exceptions.py        # Quantum-specific error handling
├── helpers.py           # Utility functions
├── quantum_register.py  # Core: QuantumRegister class for state management
├── qubit.py             # Single-qubit operations and state handling
└── visualization.py     # State/circuit visualization tools

License

Distributed under the MIT License.


Support

For questions or feedback:

🇷🇺 Русская версия: README_RU.md

Metadata

Release files for ariquantum 0.2.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 ariquantum 0.2.0
File Size Uploaded Provenance
ariquantum-0.2.0.tar.gz 22.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ariquantum 0.2.0
File Interpreter ABI Platform
ariquantum-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.2 kB

Release files / ariquantum-0.2.0.tar.gz

Download URL ariquantum-0.2.0.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c7187f69cf62baa8abc53f63185ffe26af78b839d8674af8251ccf9c5f4cb6d0
BLAKE2b-256 checksum
How to use checksums
4034c4b7730acaa203a5404c063dc330a490b15ec9b9ce12e24dba16d4d342b2
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 Apr 27, 2026.

Transparency log

Release files / ariquantum-0.2.0-py3-none-any.whl

Download URL ariquantum-0.2.0-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a697266e8f77d14ab64491ca5dd53959e86c1147e0d856b4c86dbdd781cc9d0
BLAKE2b-256 checksum
How to use checksums
56c7e2f5aca56677febb4b37d8a64d0bb03d9b8aa5bef56947c5b15e5214682a
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 Apr 27, 2026.

Transparency log

Security for ariquantum 0.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ariquantum-0.2.0.tar.gz

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 Apr 27, 2026.

Transparency log

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