qxelarator Python Package
Project description
QX simulator
QX simulator is a simulator of cQASM programs, developed by QuTech. At the moment, QX simulator only supports cQASM v3.0 programs (see cQASM-spec for the language specification).
It performs simulations of input programs received via file or string. It produces one of the following results:
- A simulation result: a quantum state and, optionally, a list of measurements.
- An error. In case the input program was malformed or the simulation failed.
It can be used:
- As a standalone executable (built from C++), from the command line.
- As a module (called
qxelarator), from Python projects (as a Python package).
cQASM v3.0 specification coverage
QX simulator has the following shortcomings regarding to the current cQASM v3.0 specification:
- Power gate modifier can only be used with integer exponents, not with fractional (rational or irrational) ones.
Getting started
Given a cQASM program example.cq.
version 3.0
qubit[2] q
bit[2] b
H q[0]
CNOT q[0], q[1]
b = measure q
We can simulate this circuit using QX simulator, either from the command line, or with a Python script.
Command line
build/Release# ./qx-simulator -c 1000 example.cq
Python
import qxelarator
if __name__ == "__main__":
result = qxelarator.execute_file('example.cq', iterations=1000)
print(result)
Documentation
The QX simulator documentation is hosted through GitHub Pages.
License
QX simulator is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Authors
Quantum Inspire: support@quantum-inspire.com
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 qxelarator-0.10.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 722.3 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f759bd42656090bbd4f487801155ee7486f1e2eb520fa64ca521b70f88042ff1
|
|
| MD5 |
b0b514da7557621aeea40c6d7c251d68
|
|
| BLAKE2b-256 |
5b5c12a45fba637026018ee4d12ea131c32154a324bda76ae5f1b003f38b4c3d
|
File details
Details for the file qxelarator-0.10.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
112e50a4f42267424a3540b19007eb3216528eeedc426d0e9adae069989acbd2
|
|
| MD5 |
1cbd55e8764b7c71f8154ed51f10e0d1
|
|
| BLAKE2b-256 |
b57b1d8742689faa85b61c298ad1aa866fd6fa13a294bcc6330ecf93f70ec850
|
File details
Details for the file qxelarator-0.10.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.13, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
936fc858c5bac32acbbc47e48d3f2bede210f7b86a861ad4fc4e3af41308cf36
|
|
| MD5 |
b6fe0eb7e405a239752e0e39c3a29878
|
|
| BLAKE2b-256 |
0e008522aafdf9eb001206ef1a14ee8d762c0bc8ca6630e0b9e5c0e88965efc2
|
File details
Details for the file qxelarator-0.10.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137dc2f840d952d431afe892bd9e93015bd27cba49037af49e9b18f268de7c3a
|
|
| MD5 |
eda70814502ad9a5bfc8c6cbaab5b3bc
|
|
| BLAKE2b-256 |
39fe207258d3b44fa5a1f4918c97acb0821c03db66d4ccb90a1ae08625d1ab12
|
File details
Details for the file qxelarator-0.10.0-cp313-cp313-macosx_10_13_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp313-cp313-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.13, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64434a06f4b94371472295ddef093eac1a5f7490fb0e7bec5b5e6bac1483aab1
|
|
| MD5 |
6e5e8294e100f2cb45104f3a2473c715
|
|
| BLAKE2b-256 |
bb4b186b2842d6397c2d5b60fd0f82afb4fc84f0e506d734bb7294856188b7dd
|
File details
Details for the file qxelarator-0.10.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 722.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9374bb65485d310d1a36965d8131e8508fc0bf5af39f2210bd80cf3ac86df2ae
|
|
| MD5 |
dba9c16ac2a390c6d3d0cce860954e5f
|
|
| BLAKE2b-256 |
d8750746184dd520a535ca7cfa89476cf6a692b25eb5fee47fc7e37767cef898
|
File details
Details for the file qxelarator-0.10.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbb305f4b574c19ed53af121fd4a43e84e6ba59e57d0b4ef1e16b1046c4a123e
|
|
| MD5 |
ff23c68ed1f08a4a8d03d0cd51be7090
|
|
| BLAKE2b-256 |
191068c10f01dce84cc78b16b7c884c21f4fb76b7abdeb6d72761e2b8f2ec871
|
File details
Details for the file qxelarator-0.10.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d8f04f1c70e42a1902ff88cb08b56ec6472b3eedfc8cd302e9ad0e26d8cbe1
|
|
| MD5 |
e21b2952e934028d2c0b7d0637b1630e
|
|
| BLAKE2b-256 |
637855cc3e3b1d2fb7b8674f78168550610279b1f89cbb0e60577c7e4faa3001
|
File details
Details for the file qxelarator-0.10.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f96ba6732afb75b876a27085b51bf574e110909612d9a8450620c1995dac6f13
|
|
| MD5 |
8ef83ded205f14d78ef961fbb232f1a5
|
|
| BLAKE2b-256 |
7202316ab652b315f1213a0f530f38fedaa9268f19370f8fc39fa4a974dfadeb
|
File details
Details for the file qxelarator-0.10.0-cp312-cp312-macosx_10_13_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8835146e598f8f8fa73457491b0ca2867f2c9d42693b93951083eae3296e5fa
|
|
| MD5 |
38582ec9abb6af3c9a17f136bfc3e0d6
|
|
| BLAKE2b-256 |
fd694b1ae1d9021888504b688236d766f2bb83e96ce0846a044a3bc32ea0b329
|
File details
Details for the file qxelarator-0.10.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 722.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fa8bb37c7f37a0ab70a43431781a3afa3a11b7fd7e80d05da22b7b75bb22587
|
|
| MD5 |
4d2e62fdded867968afa844d6cec6aab
|
|
| BLAKE2b-256 |
032e3bd861efd881ef8bf4444c55b829f041d8bca9e8b4df49f4e95c0e5284e3
|
File details
Details for the file qxelarator-0.10.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85d57e5ec308e33510daa1390f727f9a95b361f8963597d7016cf108476f6386
|
|
| MD5 |
883ed52019d01e2e5101aef20a784a35
|
|
| BLAKE2b-256 |
9195d186fe81088ed989e409ce7767189901973e354b8ae6b9b3606b42c88ca0
|
File details
Details for the file qxelarator-0.10.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3575b005121e2618dcce0df6d66289295d21a8bd7a911fb1c10e6b1059e480b0
|
|
| MD5 |
7c7eab31d93c3f0b56b3412fb58cf287
|
|
| BLAKE2b-256 |
3d9cdb3f3171f468a53b631fddbeb41d9a445df3f59128012ad2d7108a4cc61b
|
File details
Details for the file qxelarator-0.10.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54d3394800e86c7a6af8af7714859c7bf925e5653ad0733cdc4304bee3dcf615
|
|
| MD5 |
c608bd7eca18420ac394b48026b7a767
|
|
| BLAKE2b-256 |
c92087175e99322bcf95b36e23393f4cecc77d7af933a0dd5050c3f477db01cf
|
File details
Details for the file qxelarator-0.10.0-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73331f7b42913d8f00b9e627e220b814ea5a888396fb24ad252866c7837e8adf
|
|
| MD5 |
085af8e4b8d15d30738759d951f61a95
|
|
| BLAKE2b-256 |
1a9722545eca6f1b372c2c5ac81c66760570842b9b9df91fa7bb0fb510314d74
|
File details
Details for the file qxelarator-0.10.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 722.4 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a77c8f32d3ea4cc0257a02856372b10decb491fe2eefcaaa181433934a8e7ba
|
|
| MD5 |
25444fe9b780eacc2d2b66d77c6425a6
|
|
| BLAKE2b-256 |
5a001fea2467c41e953794e6d49ee258805c7726b10f501ae09a78fd789c61de
|
File details
Details for the file qxelarator-0.10.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9402220544a05748b9f06cfbddc851623b2339bb0df9c664d6ba629ecc34f030
|
|
| MD5 |
417c557897d457839af6d33081ba2eb0
|
|
| BLAKE2b-256 |
dddd61b923f9a13119291bc9ae4f4fec0310184db34d7a4d90cf94b0329be624
|
File details
Details for the file qxelarator-0.10.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78dcf3083e2d7a9dfcf3664ddca76739b66108c338157424235d5a49e133df29
|
|
| MD5 |
b3605827ea18d940f6e26a31668b52cf
|
|
| BLAKE2b-256 |
dc49c6b0e994f372dac141c35f242ba1f81d22a7d87a69095eb7e70320cc612a
|
File details
Details for the file qxelarator-0.10.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd3750358ae9c8d6afcc8022a0d6943ab93aee7a42a8265189fdf62f03ab8802
|
|
| MD5 |
288ee5c9dd4cdebc44fa7c075bf30c68
|
|
| BLAKE2b-256 |
170751718a69cc9c54b28493de65a6602a6cfb9379a2b9b00cebadf8331d2bc5
|
File details
Details for the file qxelarator-0.10.0-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6526173729e6b9acdc27daa2a33a21823b024bff45fe74e70e6cbb6fee27b76
|
|
| MD5 |
4a5f20b3542f16e6d8b868022a93ee74
|
|
| BLAKE2b-256 |
11f49ba82a1022ccfec27231f636c2638c5772d379d60287e71d8f4d2599effe
|
File details
Details for the file qxelarator-0.10.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 722.4 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d516e23f65d3ae22e60bb7a195fc1cf49f934e57ce5977c579bb6ba907e5e144
|
|
| MD5 |
3ebfd7776e1f4e7e47eca92dbafe9399
|
|
| BLAKE2b-256 |
1700a44cc896f2e2f0420e3ff00677aa6fa8a0c19cd52a432fc1567dc1135811
|
File details
Details for the file qxelarator-0.10.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.9, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d2c76e6b6aab4c78e4720e243f3bb4ad548e4f131e3de19fd1dc8b62af8c57e
|
|
| MD5 |
816a306fcb2ec70b460dddb452d4cfcc
|
|
| BLAKE2b-256 |
fdc90e653fe10378ceac02c83f245b4f05015d63dc4fad7215dd5abbf4f9d898
|
File details
Details for the file qxelarator-0.10.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
992e596f6eda5ea1d5ceaa55e4ebf8a66f79ecc25905993839dab372bf9508fb
|
|
| MD5 |
64551a195c5780019297651d46a6fd79
|
|
| BLAKE2b-256 |
20caec3366a4b2dbfb7ffa84d25877b5e040e2c4c4e7858d60b496f14713c7bd
|
File details
Details for the file qxelarator-0.10.0-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2af17087a5a46d34e66c594787276e91153895f057dcc01e4ee73561d2b4d26
|
|
| MD5 |
3bcfb8f7ab2608ef24ea9a5aca91741a
|
|
| BLAKE2b-256 |
c779df984358600444b35faa00dbde4e5e20a6ddd858e4d7fa2c73aadf202126
|
File details
Details for the file qxelarator-0.10.0-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: qxelarator-0.10.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775c7814e955729c1ad0d0df2f3e83590020808b48064abeec42bc523a90c892
|
|
| MD5 |
a4db1e16cb93619cbb637e79e47e16ca
|
|
| BLAKE2b-256 |
d07b0d810b13e7a62295995305526d43f0ae2f3211c427be8eb0ce0727d20076
|