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.31.tar.gz (163.4 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.31-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (355.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

fast_pauli-0.0.31-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (355.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

fast_pauli-0.0.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (357.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

fast_pauli-0.0.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (357.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for fast_pauli-0.0.31.tar.gz
Algorithm Hash digest
SHA256 fa5032ff2d60db4cf4e0d916ea628f6f38ebcf0b84882bf2a7ef5210cedc31d7
MD5 f064b671c22c42257bc3b142787de149
BLAKE2b-256 d15247403eeefa12fb3c9783704c80f1164fc29bb847780e65723b48f8d90a8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fast_pauli-0.0.31-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e6bbe8b66f9b0265ca7a1bcee1c69dd5825fa881f937db0dbf02f9ae386206d
MD5 9784e7a23e4953ca0f96732c1b7a9a42
BLAKE2b-256 39814cb69e97d1079adc294c56b6345a2d7e1557bc5275c774cac9250c2a9195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fast_pauli-0.0.31-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e279d7b6f136e0fbe1ea1d8cc624cf8ae2fca0e5d4a5edaa73a2fd0daf4e217
MD5 2bb94eacf8f518e812b9ea12fe2184b7
BLAKE2b-256 2d3c0545053f3d274b9add3b0e8a7661a0a0bd7dbb6852ac6761358c14553c8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fast_pauli-0.0.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49e0130cfbdd4be82623e9a5b5b071aa313715014d40307710a378e23388a49d
MD5 a41c454a3d37aa21dee9f601458a6b65
BLAKE2b-256 0b81850c56ee205c8d609d2c2e3161b1050b7faf663ff8d7061e3f6633a12adf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fast_pauli-0.0.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5acbe7e08aa64751ca615bb23422806cf077007cf6a65022d41d863e4649d6dc
MD5 5fda263f696812c4b86742ca3a6b5231
BLAKE2b-256 ca23b2a8add0b15b524a3ac9fc53df2b0c420c957ab0ecd592d3664cc094d0e8

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