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 Distribution
Built Distributions
File details
Details for the file fast_pauli-0.0.29.tar.gz
.
File metadata
- Download URL: fast_pauli-0.0.29.tar.gz
- Upload date:
- Size: 157.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11ff8be9beb626568d59e2bfe266dbef332fe6469f80fd0239a6e735943ad90c |
|
MD5 | b6dbd454d67e5ba0ef189d66ad978fe7 |
|
BLAKE2b-256 | 0e4c99ad8b4d0b7108395cdddb7d4ce9b5beb9412cedcb590d1ebf72c898c898 |
File details
Details for the file fast_pauli-0.0.29-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fast_pauli-0.0.29-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 335.9 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87baca757d6627bfd5e107dfaefd866829a1b27849e992d2387d67ac6459164a |
|
MD5 | 385fe9bbc1a1b17a90ee3bf9f1ed769a |
|
BLAKE2b-256 | 994dbf986603fc8a2fe02d703119269a5d1dc70b816a461c40f5ce6135acc0fc |
File details
Details for the file fast_pauli-0.0.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fast_pauli-0.0.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 335.9 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8be68008a6baf1911bc0844b23d6e55a464a0fe78eb5c022da32c84dfa1a05c5 |
|
MD5 | 82a39859fa5697b129a1987162d33886 |
|
BLAKE2b-256 | 2b4c1b98e88eef3bb9f84b894f35a5f9d45375f05d0ef2b707d0c5e35f6f74f2 |
File details
Details for the file fast_pauli-0.0.29-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fast_pauli-0.0.29-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 337.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f064514a78991013aec5b4c464e01efae939d862943989e6c773ebaff57ae22 |
|
MD5 | b01dd8e29338faed097a4ef079514c9e |
|
BLAKE2b-256 | 5aa379f628cbdb6a59ca1ffdaf2f60e87f1a20b098eb60c1cfdfff2eb8db5ad8 |
File details
Details for the file fast_pauli-0.0.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fast_pauli-0.0.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 337.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1fa91927c79ee09dffb4757807078ecfbc1e2adb4252bff7bfdc8eb2cdb37ee |
|
MD5 | c10805777ddae7ab62458e125bb00b80 |
|
BLAKE2b-256 | 37679ba6a07aebf4d30a0ff270ea26dfe3ca0ddee5587eaea3443e56e8a77150 |