Skip to main content


License PyPI - Version PyPI Python Version PyPI - Version Total Downloads Monthly Downloads Discord Pytest

Paper Forks Open Issues Stars Contributors

About

Qrisp is a high-level quantum programming framework that allows for intuitive development of quantum algorithms. It provides a rich set of tools and abstractions to make quantum computing more accessible to developers and researchers. By automating many steps one usually encounters when programming a quantum computer, introducing quantum types, and many more features Qrisp makes quantum programming more user-friendly yet stays performant when it comes to compiling programs to the circuit level.

Features

  • Intuitive quantum program design
  • High-level quantum programming
  • Efficient quantum algorithm implementation
  • Extensive documentation and examples

Installation

You can install Qrisp using pip:

pip install qrisp

Qrisp requires Python 3.11 or later, up to and including Python 3.13 (>=3.11, <3.14).

Qrisp is compatible with any QASM-capable quantum backend! In particular, it offers convenient interfaces for using IBM, IQM and AQT quantum computers, and any quantum backend provider is invited to reach out for a tight integration!

Additional backends require extra dependencies:

pip install qrisp[aqt]     # AQT quantum hardware
pip install qrisp[iqm]     # IQM quantum hardware
pip install qrisp[qiskit]  # Qiskit Aer simulator + IBM Quantum Runtime

Documentation

The full documentation, alongside with many tutorials and examples, is available under Qrisp Documentation.

Shor's Algorithm with Qrisp

Shor's algorithm is among the most famous quantum algorithm since it provides a provably exponential speed-up for a practically relevant problem: Facotrizing integers. This is an important application because much of modern cryptography is based on RSA, which heavily relies on integer factorization being insurmountable.

Despite this importance, the amount of software that is actually able to compile the algorithm to the circuit level is extremely limited. This is because a key operation within the algorithm (modular in-place multiplication) is difficult to implement and has strong requirements for the underlying compiler. These problems highlight how the Qrisp programming-model delivers significant advantages to quantum programmers because the quantum part of the algorithm can be expressend within a few lines of code:

from qrisp import QuantumFloat, QuantumModulus, h, QFT, control


def find_order(a, N):
    qg = QuantumModulus(N)
    qg[:] = 1
    qpe_res = QuantumFloat(2 * qg.size + 1, exponent=-(2 * qg.size + 1))
    h(qpe_res)
    for i in range(len(qpe_res)):
        with control(qpe_res[i]):
            qg *= a
        a = (a * a) % N
    QFT(qpe_res, inv=True)
    return qpe_res.get_measurement()

To find out how this can be used to break encryption be sure to check the tutorial.

Qrisp offers much more than just factoring! More examples, like simulating molecules at the quantum level or how to solve the Travelling Salesman Problem, can be found here.

Feedback and Contact

If you have comments, questions or love letters, here is how you can engange with the Qrisp Community and Developers:

  • Join the Discussions on Discord.
  • Join the bi-weekly Developer Call.
  • Ask a question, request a new feature and file a bug with GitHub issues.
  • Vote on existing GitHub issues by reacting with a 👍. We regularly check issues with votes!
  • Star the repository to show your support.

Authors and Citation

Qrisp is the work of many people.

If you want to cite Qrisp in your work, please use:

@misc{seidel2024qrisp,
      title={Qrisp: A Framework for Compilable High-Level Programming of Gate-Based Quantum Computers}, 
      author={Raphael Seidel and Sebastian Bock and René Zander and Matic Petrič and Niklas Steinmann and Nikolay Tcholtchev and Manfred Hauswirth},
      year={2024},
      eprint={2406.14792},
      archivePrefix={arXiv},
      primaryClass={quant-ph},
      url={https://arxiv.org/abs/2406.14792}, 
}

License

Eclipse Public License 2.0

Metadata

Release files for qrisp 0.9.10

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

Source distribution (sdist)

Source distribution for qrisp 0.9.10
File Size Uploaded Provenance Actions
qrisp-0.9.10.tar.gz 932.0 kB Without provenance Details for qrisp-0.9.10.tar.gz

Built distribution (wheel)

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

Total release size: 2.2 MB

Release files / qrisp-0.9.10.tar.gz

Download URL qrisp-0.9.10.tar.gz
Size 932.0 kB
Tags Source
SHA-256 checksum
How to use checksums
058f042d3a9f099d2ff6cc9abab8b4e347c4332300459c097edf4fc014b67a3a
BLAKE2b-256 checksum
How to use checksums
1b5b6565d6ecca3a6c70bd237a69c8f06593a09f4909cade83bddc6c7ae8829a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qrisp-0.9.10-py3-none-any.whl

Download URL qrisp-0.9.10-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c17854a28ed4f9c4cc8caaea6bcfa81f36641e456558e8c67166280ff93e7d6d
BLAKE2b-256 checksum
How to use checksums
a7daafc430f0dd6dcba9a4a464904a577fab641f0c1ef2014d6fcd9c3c744151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for qrisp 0.9.10

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.9.10 This release

2 release files No provenance

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