An implementation of Google's Pauli+ simulator.
Project description
leaky
WARNING: This is a work in progress and is not yet ready for use, there will be breaking changes.
An implementation of Google's Pauli+ simulator. It uses stim.TableauSimulator
internally for stabilizer
simulation and adds support for leakage errors.
Installation
From PyPI
pip install leakysim
Built from source
git clone https://github.com/inmzhang/leaky.git
cd leaky
pip install .
Basic usage
import leaky
channel = leaky.LeakyPauliChannel()
channel.add_transition(
initial_status=0, # Computational space
final_status=1, # |2> leakage status
pauli_channel_idx=0,
probability=1.0,
)
simulator = leaky.Simulator(num_qubits=1)
simulator.do_1q_leaky_pauli_channel(leaky.Instruction('X', [0]), channel)
simulator.do(leaky.Instruction('M', [0]))
assert simulator.current_measurement_record() == [2]
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 leakysim-0.2.2.tar.gz
.
File metadata
- Download URL: leakysim-0.2.2.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b7660b1f5364239083053fc623c21c02501c098ce63f7146ef1983a4b7d1ec |
|
MD5 | 7d7003592a3670b3b7b9823eff3c6ca2 |
|
BLAKE2b-256 | a4aecf48712f1ef3556a7f10653e7cda6787969681787a4ac436667b548d00bb |
File details
Details for the file leakysim-0.2.2-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 197.7 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1215886b87de177abe5443110a03dc810c2389950b6ac17fd740c998be131835 |
|
MD5 | a660f5c621a41bc4a9fd6cbfc4cab075 |
|
BLAKE2b-256 | 77307e815822d39ee99f2510ffd01f99ca593f9a311d6512578e9fe786a7736a |
File details
Details for the file leakysim-0.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 324.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49da15c706fd86a3ed647813eeb472f4de8e464c0b7d96ae639706425b0c005 |
|
MD5 | f2d2ecf73cf05252b3fa71d9465013e3 |
|
BLAKE2b-256 | 1818832b06458f68c3f1b218a3574a103fd5567e775e979f7cb16082b49b154e |
File details
Details for the file leakysim-0.2.2-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 244.6 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c876ee5d2f40c85e64701b724759483bcf1a7a55c1121ded958f4d9c3825eba |
|
MD5 | 92c86fdbf58a42a69d29df0d70a1685e |
|
BLAKE2b-256 | cd41e1c200a4303f14a51d8693aebbfe6610251a348bdabed7c49618f4294911 |
File details
Details for the file leakysim-0.2.2-cp312-cp312-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp312-cp312-macosx_10_15_x86_64.whl
- Upload date:
- Size: 265.5 kB
- Tags: CPython 3.12, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 050df2edb3f24d46a4907fef1a955ed219a11e0d0f11f6d9c31d4f1db26de53b |
|
MD5 | 9a7a0bdd463b93b9b0872e22834399de |
|
BLAKE2b-256 | caa64c82538ea5d78ae86e40ccb7e5bb75d8b8a54c0da36fd3a41559f778c454 |
File details
Details for the file leakysim-0.2.2-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 197.2 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fab08cfc228a4ea1456d65878d7c0e3e90b7123d38fa1b2a469d716d4e6f2dae |
|
MD5 | c63b0bdb39c5b8d6064d0ab6ef67b331 |
|
BLAKE2b-256 | 751eeb9e3713b6f0098c57932199d2006693711d5eff96bdb6f32e628df2a1b9 |
File details
Details for the file leakysim-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 327.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f6d68f656bf5e51359b4dfcb3caff81d06aacb57cc23dc6a6a4b22b36c7a98 |
|
MD5 | 1fae2c3eca7b4c515e006e9952e31657 |
|
BLAKE2b-256 | 0d41c29981fcb67debce1ad9aad42151f11dfe9d90a0416d382daefea8ae08b4 |
File details
Details for the file leakysim-0.2.2-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 244.9 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f6ffc85261daa409244e64c178fd19de644606a74a33e80f6cd0ff3af7da311 |
|
MD5 | b3f77e1a9828526c251e66fbfe00d8a6 |
|
BLAKE2b-256 | d3206e61aa35fb34b7bf31db834d60c0449fe84e5816bef6a3d8bc8c166743be |
File details
Details for the file leakysim-0.2.2-cp311-cp311-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp311-cp311-macosx_10_15_x86_64.whl
- Upload date:
- Size: 264.8 kB
- Tags: CPython 3.11, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 279824a628d4db614a6d150e58ff04a214514d436e01ce35a7b62afac53512d2 |
|
MD5 | c87787d5224293d97799b51c26a18e89 |
|
BLAKE2b-256 | af6edda694a26a098498d2676ef8244a82371c471951a19606e1cf27c530f3d3 |
File details
Details for the file leakysim-0.2.2-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 196.0 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1836ad3549a9101ba1acb606826b931a162d9d6fdf7695ac0b1fcc16ef699e56 |
|
MD5 | c102ba1adb6ba73002bb5e3d6c5205fe |
|
BLAKE2b-256 | 4d9140daa6020574912c7e50e03be73c42eddf1a2149fe58a09850e0be45fd02 |
File details
Details for the file leakysim-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 326.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f7fc97352d1c15b3bf2e78d9cedfd9f4ff0ab7ef5dd8ced0c2daf2645f8c14d |
|
MD5 | e51fe9126fedd26b1cef2ce147c1fd3f |
|
BLAKE2b-256 | 1bf63b00e8c3c4648e9c5dc17fb2ad99d3fd2abe857db80c45ecfbe2b358fbf6 |
File details
Details for the file leakysim-0.2.2-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 243.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65b67abacaa378f389a81cb89bd2d0567f2e534ab50155f7de68050834fce84e |
|
MD5 | 03aca6e9bf85577bbe853947bda1f681 |
|
BLAKE2b-256 | 3cc77169e0355ce7e4bcdf0b40d8c9288ee7449705162120ae3abdd41d0a0a44 |
File details
Details for the file leakysim-0.2.2-cp310-cp310-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp310-cp310-macosx_10_15_x86_64.whl
- Upload date:
- Size: 263.2 kB
- Tags: CPython 3.10, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd704d9a9d874d01570538fcd53f1c10bfb0b2c45b5f2dc7a0883094b725fd17 |
|
MD5 | f8554cc8cbc2c8258d656750befb0b06 |
|
BLAKE2b-256 | 965bc54172b4ad10b6e54904cd952d9c316a8b81104aea99d91ab7ba1749e80e |
File details
Details for the file leakysim-0.2.2-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 193.6 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274384fbec770e6a80544dad9e66dc6676a51784903a6492d5f5e0e6e446d252 |
|
MD5 | 0d59fe33ca528c2a114ef7aaf8b50401 |
|
BLAKE2b-256 | c7854308bf485e5fe95c5b786c69e6599256b57f0863a8ec170b3419297aace2 |
File details
Details for the file leakysim-0.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 326.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9af463e6b95f00bdff0f0f5832f2716557c41439827d8e0df3455c2ea32a214 |
|
MD5 | 1644b830d5bb555d608b86a5b8df4c61 |
|
BLAKE2b-256 | d23910d171fd1af3ec501b1eb19eeb4a25a23cf9e977ee0ead8a7d2374ffa3b4 |
File details
Details for the file leakysim-0.2.2-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 243.8 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6afac7df59a0a85fe3ff2a623b5e7a351cc741894d6b87b3b9a43ef115fbf2b0 |
|
MD5 | edb89affccbf4bd7374ffb3bad7b4fcd |
|
BLAKE2b-256 | 6ea8b34c2afb719215bfec0e7d2589297b8f600358319772f13304f2aedb853c |
File details
Details for the file leakysim-0.2.2-cp39-cp39-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 263.4 kB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c15d57724e7b8cdcd3a202e89676cb957bc0381eed7ed7d617bde3568f48d450 |
|
MD5 | c40d6882b6eb9101aa12a2ebde4c1aa0 |
|
BLAKE2b-256 | ed09a343f72150070419c2e18eb6bfcecc80fafce14935797e901a8f6640b989 |
File details
Details for the file leakysim-0.2.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 195.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcdde266b42e318b90ecfe7ad027500fa18d2e4ee100a39a35c29d8ab22fa2b7 |
|
MD5 | 56b4fc9f1d0bdcd40c4304d3cc73a433 |
|
BLAKE2b-256 | 2c6b74e611fd79da634356fd9b1e63cd005c7a8523921bc43e53c735a49c4d69 |
File details
Details for the file leakysim-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 326.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7344a47d9a98510c27ae27b1f13bea052a40654e02b61b11db9ce9b05e59393 |
|
MD5 | 3ddf22dbf7c7799e3932936fb789ba4b |
|
BLAKE2b-256 | dfea68768f9235cede21fb387122bb90221e549a5c6ddf5d18a7bf1413bfded4 |
File details
Details for the file leakysim-0.2.2-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 243.5 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 680c2a2acebbffee5cbd6d3e65bc0d4f1deb18ad27dab2cbc54d1cfda9d593d7 |
|
MD5 | e416e627bf12dfcc6fffa5d650ee455d |
|
BLAKE2b-256 | ec62112ca4610255aa07eedd8672482d5ee736e2e657c4111314e3885c92c0aa |
File details
Details for the file leakysim-0.2.2-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.2-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 263.2 kB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359ac9913d3fe8834085c3bbee04d2dfe83d2d411c8c2749df1302ce50d72a3f |
|
MD5 | 932d92845a4d75f9abd9f79bdadf0114 |
|
BLAKE2b-256 | 7db59bd788b5304401a2995527d11260ec05249b8e8ec8eb8125037946cf6dca |