An implementation of Google's Pauli+ simulator.
Project description
leaky
An implementation of Google's Pauli+ simulator. It uses stim.TableauSimulator
internally and uses
the C++ API directly to gain a speed boost.
Installation
git clone https://github.com/inmzhang/leaky.git
cd leaky
pip install .
If you want to run the tests, you can install the test dependencies with
pip install pytest pytest-cov
and then run the tests with
pytest --cov=src/leaky src/tests
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.0.tar.gz
.
File metadata
- Download URL: leakysim-0.2.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7acb712515fcb569d7f0c607c3da27bcdad85b68e8fc1108e2cde2fa61826580 |
|
MD5 | 3167a86c260d889c12fcb4cadeca11d9 |
|
BLAKE2b-256 | 6cfc8ff1d9ca9fd60627c8d316941724f1746937011c4e8d725eaa62e5074932 |
File details
Details for the file leakysim-0.2.0-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 181.6 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 531b12e0a28ddb41fa43ccb42b6db30495cacb6730d2b48256efd58ba38cea7a |
|
MD5 | e084c95725a4f065d0636bf7bfd577e3 |
|
BLAKE2b-256 | ded31a874c13214e7fecfdd0f3f87eed63c55b974f883bd42f9996bd2e4e8c17 |
File details
Details for the file leakysim-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 321.2 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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c6c259d059b0568b2136dfad2ce0eaf489f93a8b78000a9abd7879cf6dcd49 |
|
MD5 | ffa806eb4dc2eac433eb765a27412726 |
|
BLAKE2b-256 | 64a9f15b549ecaf30fa6f6ff89774d05c5fdd012f43b9777b8a25f5e41f9dcf7 |
File details
Details for the file leakysim-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 241.3 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bac84f98ad94ea953ac9f9e766f3055821321e0a615799329e95794d82e647b |
|
MD5 | be3d4ec32e81cfee83c65dfdb51fe015 |
|
BLAKE2b-256 | 665760ddacd744cbed626f6a991732e4e5b082715de99c8561d768b304b0d40e |
File details
Details for the file leakysim-0.2.0-cp312-cp312-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp312-cp312-macosx_10_15_x86_64.whl
- Upload date:
- Size: 262.1 kB
- Tags: CPython 3.12, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c69dd9126ee779249e7e9c889ad694518eb4f07c1de46855c2bbda9cc0409c50 |
|
MD5 | 40e6339db8c4a5e541f78d30a819fa18 |
|
BLAKE2b-256 | 311df350975e2dc3136aff32d99e3ab9e21e9d7044bd9c4fe2a036d78bab012a |
File details
Details for the file leakysim-0.2.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 181.1 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9fa1c1b6c06769cb1257bf40b9b3ce4b7e2977f0e5032bcba5b8c7c14d3148 |
|
MD5 | 090578fd25745e4c71adc2ead59f138d |
|
BLAKE2b-256 | 958e74c2eaf0c7e2e1986991be28189642d41d650afda62d4fb83c179f71b63a |
File details
Details for the file leakysim-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 323.1 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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eccac9c623c57a998bc9068171939cd9c9c6c192ccbd316bcfd525064439c9f |
|
MD5 | ce55f1dd77d10b4721685a9975120b1b |
|
BLAKE2b-256 | 460c196c85c33ea1bfbbd92a986a6b2b2172a1d422d16991c526b94c5cf26f19 |
File details
Details for the file leakysim-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 241.6 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acee2e2760599222c6bbfd87cdaaafcae621403c9aa257082e1dfc006eff8139 |
|
MD5 | 557e645833c13a8058e3822792552e4c |
|
BLAKE2b-256 | 5f23830e3bbfaed2098dd980b6b7513be1abe8b639004a786df167b0e9a97458 |
File details
Details for the file leakysim-0.2.0-cp311-cp311-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp311-cp311-macosx_10_15_x86_64.whl
- Upload date:
- Size: 261.2 kB
- Tags: CPython 3.11, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91d8539408534e72ed6e452f3f0653bd615a2e3301b2e9da8a81167c9b338e8 |
|
MD5 | c384647d0105c9e6c94301b5fe7eb8f2 |
|
BLAKE2b-256 | e5ce0c3718b06f2baec141c304219318b8dde6e1806791ad8c53c8df09eb5805 |
File details
Details for the file leakysim-0.2.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 179.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11dd689315fcfb9d7bf3c1283ffecfbce7617d492c4b2de286ad81a7e5c7f142 |
|
MD5 | 63c6d5328475fd28e9caa5226fbbf177 |
|
BLAKE2b-256 | cb48a8b05249cac5e420bac050cdf2cf003553bf512dd71c61a0f05cc3e8a0c0 |
File details
Details for the file leakysim-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 321.9 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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c4e982d102691e9f78322c098f8e232524d2dc147592c0363a1cf9d28262e0 |
|
MD5 | 64414c57f4a533739927d4709a78179c |
|
BLAKE2b-256 | d95b846cae1e29d31e0340e66fa90c81a37a974bd34c4c16ccfc00e7d8299eb6 |
File details
Details for the file leakysim-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 240.3 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e13d22e43888a8ee1b4f948c1c733c7321d39478a342a2c71f1f70d21023302 |
|
MD5 | e8c3369455040d0112e634227f7d4345 |
|
BLAKE2b-256 | e6ab99d5229ffde0c31a52ee190bc487e42861d2eda7f49449cc69c069e43e60 |
File details
Details for the file leakysim-0.2.0-cp310-cp310-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp310-cp310-macosx_10_15_x86_64.whl
- Upload date:
- Size: 259.7 kB
- Tags: CPython 3.10, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8731f3171ec61c7eb66eac3c3be5edd648ea7f34c9a7687679c716c96658d02 |
|
MD5 | c6c8a93bcce7d65c3ad8584074436158 |
|
BLAKE2b-256 | ae07b5c758a7ba83e9821189c10979fcd1e47c97eb963f78106f597c6cc34d59 |
File details
Details for the file leakysim-0.2.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 177.7 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f16290c28ed9ed0d6b085af0c6199456ebc1b71939bf685845ae7848a328f5e |
|
MD5 | 25bf89d3a1dd120fa594aca5d8d2481a |
|
BLAKE2b-256 | e624a09d253db1be1ede916e456b03fe5e40d63000af97ed0ddab509e976bede |
File details
Details for the file leakysim-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 322.5 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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 059c5e9fe6ec5db2c6d167e1ac7bf9bf7830649304254b8f7fdfb515b923782b |
|
MD5 | e48080ee7f852263c38990988aaca40e |
|
BLAKE2b-256 | 9b6448437facbac0fdb46edcf953b8aaff39dcf15ba6ac95cfdc1d0fdcd566f2 |
File details
Details for the file leakysim-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 240.4 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c33c4c6dae8e5d4009209e533bb8a0c7f2d7a30ca835f35e50e428b47f6b1e |
|
MD5 | 37666308ef5d66d24c107fa981e85aa8 |
|
BLAKE2b-256 | 2b1ce59667f066d5ca107be64946efeab45e73e5e837467eedce0678d9eb4e45 |
File details
Details for the file leakysim-0.2.0-cp39-cp39-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 259.8 kB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9611fbaa032b3745920c8ef92b6351dccbbf9446011a1aa2aac1af5811855c51 |
|
MD5 | c456c206ca88b0fd9e59dd722c8e7a6f |
|
BLAKE2b-256 | bd2a2ae1b437b31764e569c5575378eea93b2bbe5994c8f00ef8b705819f103a |
File details
Details for the file leakysim-0.2.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 179.9 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9368fa31780f0bda62f34996dd58c5ae5f992f8aa7272b70abadf0d0d7c74a |
|
MD5 | 0146707eff11ad0a27baf13628a4d0d5 |
|
BLAKE2b-256 | b8a27937053491adf35b18f1048a114e7b2751158efbcc53c04ceb25e586538f |
File details
Details for the file leakysim-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 321.7 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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a84f68a4e7a0800b0c98e166794ce8a269c6c2d793ee2941c1b17e7590ca10d3 |
|
MD5 | 0528659de38fbbb58655c3295f603373 |
|
BLAKE2b-256 | fc44eb2ac5761d4c798f6bee00184c075fe8b0993cf86f54ad9afd10be5bb32c |
File details
Details for the file leakysim-0.2.0-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 240.2 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6204fe37c5607571dd4162fbaa85302b1ed440179e52f8bf0024d01388fd0e1c |
|
MD5 | 1ec16054d8d6041ce9276cd78b0732d2 |
|
BLAKE2b-256 | 0de1389614de55f5190580cc29d9ddb3bbd4ffff92dec0f91e2b2965ff2d2372 |
File details
Details for the file leakysim-0.2.0-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 259.6 kB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b7013677b7f89f5aaedf31fb2a78d75028406b4a3c55b0693e910653c211ae |
|
MD5 | df173d98cf0d6bc18537e50d371c4065 |
|
BLAKE2b-256 | 1568dcd0c0414cf8db4caa387a43a25151fd3d8eec6975bd658bffc0791ccfb7 |
File details
Details for the file leakysim-0.2.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 176.4 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf11f34c0844d3527e9f6d71717cea7b306669badfa66ef237c159b215a3d47 |
|
MD5 | 117945da7ac230183a6d84047aee8da3 |
|
BLAKE2b-256 | df87fe67fb095ed78d367f92c778448f061763dbde359bc7b59833c76b3141fa |
File details
Details for the file leakysim-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 318.5 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8987cae54fd6e431f599204f4f6c9c4ff9fed7bbebfdcef3a199b2e98a54ec5 |
|
MD5 | cdf5fe7d693af0eb162b53e1190c7caa |
|
BLAKE2b-256 | 3f4c47f1bc5d627bc961049cf6672d0dc7a9514e230c5fd4ebb17297920ae3bd |
File details
Details for the file leakysim-0.2.0-cp37-cp37m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: leakysim-0.2.0-cp37-cp37m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 253.8 kB
- Tags: CPython 3.7m, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b66cf9a145349c900fdde5802f88962e992d65c938582f95ac197c8f390b068 |
|
MD5 | 5d41ee3008c8d70a6fc7826ef25ac268 |
|
BLAKE2b-256 | b705d8a9731493a9075eb49800538f2b3bdcb23cb32fcce8c2e278886c114dd2 |