fast pauli
Project description
| 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 359.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c03ce4b9f9aa3db19262fc75a7b7b16ea44c83f62eab10bb84509de0f0be28f1
|
|
| MD5 |
820548e5d60344c340916ccc7ac4a55c
|
|
| BLAKE2b-256 |
e6f26128d988c903edac05264363562ae06866b7f99338895fe17f4b86a61f55
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
c03ce4b9f9aa3db19262fc75a7b7b16ea44c83f62eab10bb84509de0f0be28f1 - Sigstore transparency entry: 194617770
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 345.3 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e7b1abbb9f3aedc9aaf413f67a1a861d08e15979110276d7b398b1a8c873d01
|
|
| MD5 |
6c8506b3cdfe16646c8131c29aa9de46
|
|
| BLAKE2b-256 |
85ffbfbee6a28024965862fc704000de57762caf030056cde4e8d0aab75bcf7a
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl -
Subject digest:
3e7b1abbb9f3aedc9aaf413f67a1a861d08e15979110276d7b398b1a8c873d01 - Sigstore transparency entry: 194617759
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02397a05e74494e81ee4289fc35bb001ca2cc0f1e6fafca503fb323893aec777
|
|
| MD5 |
a24084c29b8d37456b973894bcd65f52
|
|
| BLAKE2b-256 |
f40098764624884122266a2fa9785b9750a92fd39cc5d4150134cbb5829aa140
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp312-cp312-macosx_14_0_arm64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp312-cp312-macosx_14_0_arm64.whl -
Subject digest:
02397a05e74494e81ee4289fc35bb001ca2cc0f1e6fafca503fb323893aec777 - Sigstore transparency entry: 194617761
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 359.8 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a320ab99db01c1a09b4b2b1f2105b107702fc5c4dfc65392f4b2262c7763bbf2
|
|
| MD5 |
8375521e37508c328eea6a8aead561f7
|
|
| BLAKE2b-256 |
440672b49bd32f3047a1140ff13d658551bc97e3a308e863d9014f2a4dc39aa5
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
a320ab99db01c1a09b4b2b1f2105b107702fc5c4dfc65392f4b2262c7763bbf2 - Sigstore transparency entry: 194617772
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 346.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e4977bc060b557deea9d9ab0253e0b4bd061628fed25012298c00d640cd0744
|
|
| MD5 |
0e4cffb90f78c8f045f1239183f150c5
|
|
| BLAKE2b-256 |
7319788c6d5bca56e1341849bc6d5cbfd3b131469302ed0d29cf25940a595fb5
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl -
Subject digest:
8e4977bc060b557deea9d9ab0253e0b4bd061628fed25012298c00d640cd0744 - Sigstore transparency entry: 194617755
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp311-cp311-macosx_14_0_arm64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35749d8cc0cccaf8183634d708d0272f8464a789c6555257e54748e8def88cc6
|
|
| MD5 |
0d2d96ad16b7fb79ba86779b968feaad
|
|
| BLAKE2b-256 |
782ab0358fe0ce30b3718239ce0408bb155a4ba9a564a7be2904889c84369dbc
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp311-cp311-macosx_14_0_arm64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp311-cp311-macosx_14_0_arm64.whl -
Subject digest:
35749d8cc0cccaf8183634d708d0272f8464a789c6555257e54748e8def88cc6 - Sigstore transparency entry: 194617753
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 360.0 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdbec37962f2357ddf874e7c8878868531c88c4dbfdbb90568218478f86a7518
|
|
| MD5 |
b715a8b84b0ab4981ca88c27c4e49e55
|
|
| BLAKE2b-256 |
864a905575ac2ac07d94611a82dc20737cb35f139ad69b725f0408ec63c81371
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
bdbec37962f2357ddf874e7c8878868531c88c4dbfdbb90568218478f86a7518 - Sigstore transparency entry: 194617768
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 346.8 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee7b9965877a67298ae7d27a75dd6a3a9b273efbfb89695dc2d9df21b30daa87
|
|
| MD5 |
808a84719f64489521f6706cb010f087
|
|
| BLAKE2b-256 |
50f19d1ab32ec9ebf4289cbc9deac32324d87e71b71f8bd0d12463af21e2858b
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl -
Subject digest:
ee7b9965877a67298ae7d27a75dd6a3a9b273efbfb89695dc2d9df21b30daa87 - Sigstore transparency entry: 194617775
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fast_pauli-0.0.35-cp310-cp310-macosx_14_0_arm64.whl.
File metadata
- Download URL: fast_pauli-0.0.35-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45d93e8475459c9799e203e746be5c41005230da2fd6d81dbf8b7977247976d8
|
|
| MD5 |
f893e623f9ebd24c4626431db1f4fe15
|
|
| BLAKE2b-256 |
2cd222cfd13130e094d16d186ec7a827cffb89c490d5348285109c807af5eb59
|
Provenance
The following attestation bundles were made for fast_pauli-0.0.35-cp310-cp310-macosx_14_0_arm64.whl:
Publisher:
release.yml on qognitive/fast-pauli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_pauli-0.0.35-cp310-cp310-macosx_14_0_arm64.whl -
Subject digest:
45d93e8475459c9799e203e746be5c41005230da2fd6d81dbf8b7977247976d8 - Sigstore transparency entry: 194617765
- Sigstore integration time:
-
Permalink:
qognitive/fast-pauli@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Branch / Tag:
refs/tags/v0.0.35 - Owner: https://github.com/qognitive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0225a8839108e26d53d2eaf821263ea80f5d4872 -
Trigger Event:
release
-
Statement type: