| Status | |
| Usage |
|
| Package |
|
| Legal |
|
Introduction
Welcome to fast-pauli from Qognitive, an open-source Python / C++ library for optimized operations on Pauli matrices and Pauli strings,
inspired by PauliComposer paper.
fast-pauli aims to provide a fast and efficient alternative to existing libraries for working with Pauli matrices and strings,
with a focus on performance and usability.
For example, fast-pauli provides optimized functions to apply Pauli strings and operators to a batch of states rather than just a single state vector.
See our benchmarks for more details about how fast-pauli can speed up certain functions compared to Qiskit.
Our Getting Started guide offers an introduction to some of the core functionality in fast-pauli.
Installation
Pre-built Binaries
pip install fast_pauli
From Source
There are two strategies for building fast_pauli from source. One is a quick and easy method that uses all the default configuration settings. The other is a more configurable method that involves invoking CMake, pip, pytest, and other tools directly.
Requirements
- CMake >= 3.25
- Ninja >= 1.11
- C++ compiler with OpenMP and C++20 support (LLVM recommended)
- Python >= 3.10
- scikit-build-core (ONLY for building from source with custom configuration)
Build from Source (Linux)
# Build
python -m pip install -e ".[dev]"
# Test
pytest -v tests/fast_pauli
Build from Source (MacOS)
# Setup
python -m pip install --upgrade pip
python -m pip install scikit-build-core
brew install llvm
# Build
pip install -e . -C cmake.args="-DCMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/clang++;-DCMAKE_CXX_FLAGS='-stdlib=libc++ -fexperimental-library'"
# Test
pytest -v tests/fast_pauli # + other pytest flags
Build from Source (Custom Configuration)
# Setup
python -m pip install --upgrade pip
python -m pip install scikit-build-core
# Build
python -m pip install --no-build-isolation -ve ".[dev]" -C cmake.args="-DCMAKE_CXX_COMPILER=<compiler> + <other cmake flags>"
# Test
pytest -v tests/fast_pauli # + other pytest flags
Release files for fast-pauli 0.0.35
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 6.5 MB
Release files / fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 359.4 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c03ce4b9f9aa3db19262fc75a7b7b16ea44c83f62eab10bb84509de0f0be28f1
|
|
BLAKE2b-256 checksum How to use checksums |
e6f26128d988c903edac05264363562ae06866b7f99338895fe17f4b86a61f55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 345.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
3e7b1abbb9f3aedc9aaf413f67a1a861d08e15979110276d7b398b1a8c873d01
|
|
BLAKE2b-256 checksum How to use checksums |
85ffbfbee6a28024965862fc704000de57762caf030056cde4e8d0aab75bcf7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | fast_pauli-0.0.35-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
02397a05e74494e81ee4289fc35bb001ca2cc0f1e6fafca503fb323893aec777
|
|
BLAKE2b-256 checksum How to use checksums |
f40098764624884122266a2fa9785b9750a92fd39cc5d4150134cbb5829aa140
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 359.8 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a320ab99db01c1a09b4b2b1f2105b107702fc5c4dfc65392f4b2262c7763bbf2
|
|
BLAKE2b-256 checksum How to use checksums |
440672b49bd32f3047a1140ff13d658551bc97e3a308e863d9014f2a4dc39aa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 346.7 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
8e4977bc060b557deea9d9ab0253e0b4bd061628fed25012298c00d640cd0744
|
|
BLAKE2b-256 checksum How to use checksums |
7319788c6d5bca56e1341849bc6d5cbfd3b131469302ed0d29cf25940a595fb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | fast_pauli-0.0.35-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
35749d8cc0cccaf8183634d708d0272f8464a789c6555257e54748e8def88cc6
|
|
BLAKE2b-256 checksum How to use checksums |
782ab0358fe0ce30b3718239ce0408bb155a4ba9a564a7be2904889c84369dbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 360.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
bdbec37962f2357ddf874e7c8878868531c88c4dbfdbb90568218478f86a7518
|
|
BLAKE2b-256 checksum How to use checksums |
864a905575ac2ac07d94611a82dc20737cb35f139ad69b725f0408ec63c81371
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 346.8 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
ee7b9965877a67298ae7d27a75dd6a3a9b273efbfb89695dc2d9df21b30daa87
|
|
BLAKE2b-256 checksum How to use checksums |
50f19d1ab32ec9ebf4289cbc9deac32324d87e71b71f8bd0d12463af21e2858b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency logRelease files / fast_pauli-0.0.35-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | fast_pauli-0.0.35-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
45d93e8475459c9799e203e746be5c41005230da2fd6d81dbf8b7977247976d8
|
|
BLAKE2b-256 checksum How to use checksums |
2cd222cfd13130e094d16d186ec7a827cffb89c490d5348285109c807af5eb59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 9, 2025.
Transparency log