Skip to main content

fast pauli

Project description

Status Linux Build Status Linting
Usage Documentation Status Installation
Package PyPI - Version
Legal License Contributor Covenant

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_pauli-0.0.32.tar.gz (164.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fast_pauli-0.0.32-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (364.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

fast_pauli-0.0.32-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (364.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

fast_pauli-0.0.32-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (365.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

fast_pauli-0.0.32-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (365.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file fast_pauli-0.0.32.tar.gz.

File metadata

  • Download URL: fast_pauli-0.0.32.tar.gz
  • Upload date:
  • Size: 164.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for fast_pauli-0.0.32.tar.gz
Algorithm Hash digest
SHA256 f766bb322b00ad0afd0a73b2167943db472219c6b336b921934a21897bfcd8f1
MD5 d279ba8fb18bb2f0e998cab7627e6383
BLAKE2b-256 cb52fe94a10867a1a95b36f3fd40efddadb96513db32f8d275fcde787395ae37

See more details on using hashes here.

File details

Details for the file fast_pauli-0.0.32-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fast_pauli-0.0.32-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 669d866f491ff78bbc3e152d4d36ffa1c21429b34ca23222d956c147202397b6
MD5 1afc52ff683acc4f983bd9cf07c87852
BLAKE2b-256 db461175f07d0b9742bb2272fc463a9e97742853a2536161a19f583ad8575ec3

See more details on using hashes here.

File details

Details for the file fast_pauli-0.0.32-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fast_pauli-0.0.32-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a85d59135de98f76b81e4e0c14408650227a8aecfe7c9665d76ed80d84410dd9
MD5 0d233b62b28a597f6271c722dc0301ff
BLAKE2b-256 cf2a78715997e3028ca81647ad6529d3a0bc18bfaa28884699dfe86bc2fe894d

See more details on using hashes here.

File details

Details for the file fast_pauli-0.0.32-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fast_pauli-0.0.32-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b9a00862d34b50b126c138403dc48fe9d37994c0bcd5dcbe7c5af5ea3de4b84d
MD5 b051234cfba48a38c067b5f94b8abb2e
BLAKE2b-256 bc23ac6a6e1af4e6ab750c088cf862e9d815a1752b68ba223802cdff7e57a1b5

See more details on using hashes here.

File details

Details for the file fast_pauli-0.0.32-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fast_pauli-0.0.32-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ce980d70552be0569c9402e72c83f070c22d6642a70a114d5f0887d37b13709
MD5 0e95f7fcd3c3b9ecf1eee82edeaf4d99
BLAKE2b-256 59ea2864c906958ef325924589676596762cf35f9e8455185b0f4a3ca970b947

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page