Skip to main content

PSIQIT

English | فارسی

Python 3.8+ License: MIT Version CI DOI

Python Scientific Quantum Information Toolkit

PSIQIT is a comprehensive, high-performance quantum computing simulation library designed for researchers, students, and developers. It provides a robust framework for simulating quantum circuits, open quantum systems, variational algorithms, and quantum error correction.

Key Features

  • Circuit Simulation: Intuitive circuit building with consistent LSB-first qubit ordering.
  • Quantum Algorithms: Built-in implementations of Grover, Shor, Deutsch-Jozsa, Bernstein-Vazirani, and QPE.
  • Open Quantum Systems: Solvers for the Lindblad master equation, quantum trajectories, and time evolution.
  • Variational Methods: Frameworks for VQE, QAOA, and SSVQE with custom ansatz support.
  • Information Theory: Tools for calculating von Neumann entropy, concurrence, negativity, and mutual information.
  • Error Correction: Implementations of Bit-Flip, Phase-Flip, Shor, and Steane codes.

Installation

Install the latest stable release via pip:

pip install psiqit

Or install directly from the repository for the latest features:

git clone https://github.com/psiqit/psiqit.git
cd psiqit
pip install -e .

Quick Start

Creating a Bell State

from psiqit.circuits import QuantumCircuit

# Initialize a 2-qubit circuit
circ = QuantumCircuit(2)

# Apply Hadamard and CNOT
circ.h(0).cx(0, 1)

# Run and measure
state = circ.run()
print("State Vector:", state.data)

result = circ.measure(shots=1024)
print("Measurement Counts:", result['counts'])
from psiqit.algorithms import grover_search

# Search for state |101> (5) in a 3-qubit database
result = grover_search(n_qubits=3, target=5, shots=1000)

print(f"Found target: {result['most_likely']}")
print(f"Success probability: {result['probability_target']:.2%}")

Solving Lindblad Equation

from psiqit.quantum import pauli_z, pauli_x
from psiqit.dynamics import LindbladSolver

# Define Hamiltonian and collapse operators
H = pauli_z()
L = [pauli_x()]

# Solve the master equation
solver = LindbladSolver(H, L, gamma=[0.1])
result = solver.solve(t_span=(0, 10), dt=0.01)

Project Structure

psiqit/
├── psiqit/                 # Core library modules
│   ├── quantum/            # States, operators, and measurements
│   ├── circuits/           # Circuit building and execution
│   ├── algorithms/         # Quantum algorithms
│   ├── dynamics/           # Lindblad, Trotter, and adiabatic evolution
│   ├── info/               # Entropy, fidelity, and entanglement
│   ├── variational/        # VQE, QAOA frameworks
│   ├── error_correction/   # QEC codes
│   ├── qml/                # Quantum machine learning
│   └── visualization/      # Bloch sphere, circuit drawing
├── tests/                  # Comprehensive test suite
├── examples/               # Jupyter notebooks and use-cases
├── docs/                   # Project documentation
└── pyproject.toml          # Build and packaging configuration

Documentation

Full documentation is available at https://psiqit.github.io/psiqit/.

The documentation includes:

  • API Reference: Detailed documentation for all modules and classes.
  • Tutorials: Step-by-step guides for common quantum computing tasks.
  • Examples: Real-world applications and research use-cases.

Testing

PSIQIT comes with a rigorous test suite. To run all tests:

pytest tests/
# Or run the comprehensive suite
python test_computational.py

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Citation

If you use PSIQIT in your research, please cite it using the DOI below. You can also click the "Cite this repository" button on the right sidebar of this page for pre-formatted citations in various formats (BibTeX, APA, IEEE, etc.).

DOI

@software{psiqit2026,
  author       = {Azadmarzabadi, Mahdi},
  title        = {PSIQIT: Python Scientific Quantum Information Toolkit},
  version      = {1.0.3},
  year         = {2026},
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.22702331},
  url          = {https://doi.org/10.5281/zenodo.22702331}
}

APA Style:

Azadmarzabadi, M. (2026). PSIQIT: Python Scientific Quantum Information Toolkit (Version 1.0.3) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.22702331

Contact

Mahdi Azadmarzabadi - psiqitofficial@protonmail.com
Project Link: https://github.com/psiqit/psiqit

Metadata

Release files for psiqit 1.0.3

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

Source distribution (sdist)

Source distribution for psiqit 1.0.3
File Size Uploaded Provenance Actions
psiqit-1.0.3.tar.gz 15.6 kB With provenance Details for psiqit-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 21.7 kB

Release files / psiqit-1.0.3.tar.gz

Download URL psiqit-1.0.3.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d94fb061f962d38237ab3f3b7f057a1085faa477c61f1f67e0f30081284ead50
BLAKE2b-256 checksum
How to use checksums
5a8e925580a0d7f3f7670acf69f9fec544f5583f4c8ed32b3bb021dc97ad7586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 11, 2026.

Transparency log

Release files / psiqit-1.0.3-py3-none-any.whl

Download URL psiqit-1.0.3-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c2c42175fcdd90b41f7b1e0c1e2177924cdedb67a0526b0dd96e39006e09a23
BLAKE2b-256 checksum
How to use checksums
813ac66a3ebad7304ed59689a67430b51a0c9ff31dc23dc49aa0cd2f579581e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 11, 2026.

Transparency log

Security for psiqit 1.0.3

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for psiqit-1.0.3.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 Sep 11, 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