Pauli and Clifford algebra for quantum computing
Project description
paulimer - Paulis, Cliffords and stabilizer simulation
High-performance Pauli operators, Clifford unitaries, and stabilizer simulation for quantum computing.
Installation
pip install paulimer
Quick Start
import paulimer
# Pauli operators
p = paulimer.DensePauli("XYZ")
q = paulimer.SparsePauli("X0 Z100")
print(q * q) # Identity
# Clifford gates
h = paulimer.CliffordUnitary.from_name("Hadamard", [0], qubit_count=1)
print(h.image_of(paulimer.DensePauli("X"))) # Z
# Stabilizer simulation
sim = paulimer.OutcomeCompleteSimulation(2)
sim.apply_unitary(paulimer.UnitaryOpcode.Hadamard, [0])
sim.apply_unitary(paulimer.UnitaryOpcode.ControlledX, [0, 1])
sim.measure(paulimer.SparsePauli("Z0"))
Features
- DensePauli / SparsePauli - Pauli operators with phase tracking and multiplication
- CliffordUnitary - Clifford gates with conjugation and composition
- PauliGroup - Group operations including membership testing and factorization
- Stabilizer Simulation - Noiseless (OutcomeComplete, OutcomeFree, OutcomeSpecific) and noisy (Faulty) modes
Use Cases
Designed for quantum error correction research, including stabilizer circuit analysis and Clifford circuit verification.
Performance
Built on binar for SIMD-accelerated binary linear algebra.
API Reference
See paulimer.pyi for complete type hints and documentation.
License
MIT License - See LICENSE file for details.
Contributing
Contributions welcome! See github.com/microsoft/qdk-ec for guidelines.
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 paulimer-0.1.1-cp39-abi3-win_arm64.whl.
File metadata
- Download URL: paulimer-0.1.1-cp39-abi3-win_arm64.whl
- Upload date:
- Size: 543.1 kB
- Tags: CPython 3.9+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c775d7c20d5185dfbfd879225de8cf8f6c2ede2116330b2489950cd87cf271
|
|
| MD5 |
0693192955d4f83b1f521bf034f26a1a
|
|
| BLAKE2b-256 |
f1d8d8adfbd4c58cfd14dc83e9dd1f667c7c4e4cd4260ab32eb52fecddd943d9
|
File details
Details for the file paulimer-0.1.1-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: paulimer-0.1.1-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 611.2 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2925a119cd8e73b964ba2eb1d4907391e1d351d99b59a1354a75847c9c56d908
|
|
| MD5 |
596a3aad3e51f1b9dbd5d8b49ceaeafd
|
|
| BLAKE2b-256 |
b9ce5e49c9114ee226e3dc9b68e20fe3313dd2466ff6ac15596213fc128fdc44
|
File details
Details for the file paulimer-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: paulimer-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 6.9 MB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
128ce3117bafccf124b40f202c248469d81b4c5c78a873a3b8438ec36575e81b
|
|
| MD5 |
cd4cf252aa0b049a658056972336582f
|
|
| BLAKE2b-256 |
83112199252c4fff3665318b6c4ddf2b507d450afe628019fa300e554426d784
|
File details
Details for the file paulimer-0.1.1-cp39-abi3-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: paulimer-0.1.1-cp39-abi3-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 6.2 MB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05a2ee6cef9d1722b7990c313f29dc5c747a40289ab7c248a583a3a728d0dab
|
|
| MD5 |
9c663ac160a718c80e8b1ea120cd1b1d
|
|
| BLAKE2b-256 |
af98f23268bbd8fb29a559283e00cd83f86c15bcae057116c82fa98d7597b37f
|
File details
Details for the file paulimer-0.1.1-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: paulimer-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 659.2 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b73e22518666ab7adb689d4bd670f38d6fc4ffa049215135716bfe441bc81d8
|
|
| MD5 |
283a950e14dae4b99b2bfb17171edb80
|
|
| BLAKE2b-256 |
d7111597d37a92d517ea210c44922778a2efd6fc7a3be07e927d330d001ddfdd
|
File details
Details for the file paulimer-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: paulimer-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 701.6 kB
- Tags: CPython 3.9+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc3d3494739cfb1cefa992a1d89d202a7c9c775669a475e78b6288abbcd49cda
|
|
| MD5 |
604a1409322f78ef591c42ecf329ccc1
|
|
| BLAKE2b-256 |
94c1a292a76d8061f5b3db39f7cf0f70566044f7db30a22c60f4a391d055a506
|