qxelarator Python Package
Project description
QX Simulator
A universal quantum computer simulator.
Dependencies
QX should work on the following platforms.
- Linux
- Windows
- MacOS
For compilation, you need the following things.
- A C++ compiler with C++11 and OpenMP support (GCC for Linux, LLVM/clang for MacOS, MSVC 2015 with update 3 or above for Windows)
- cmake (>= 3.13)
- flex (>= 2.6.1)
- bison (>= 3.0)
For the QXelarator Python module, you also need the following.
- swig (Linux/MacOS >= 3.0.12; Windows >= 4.0.0)
- python (>= 3.5) [for python interface to QX]
Installation
To build run the following in the current directory:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=<desired_install_path>
cmake --build .
cmake --target install # Linux/MacOS
cmake --target INSTALL # Windows
<desired_install_path>
must be an absolute path to where you want to install
QX.
QXelarator: QX as a Quantum Accelerator
QXelarator (note the typo; sorry) is the python interface to QX simulator, which is perhaps the easiest way to start simulating quantum circuits.
API
qxelarator
mainly provides the following API calls:
qx.set('basic.qasm') # set the required qasm to be executed on qx
qx.execute() # execute
qx.get_measurement_outcome(0) # get measurement results from qubit 'n' as bool
get_state() # get quantum register state as string
Installation
The easiest way to get QXelarator running on your machine is to use a pre-built wheel. These are available for 64-bit Windows, Linux and OSX, for all currently active Python versions. You can install them as follows.
python3 -m pip install qxelarator --user
Alternatively, you can build and install from source using
python3 -m pip install -v -e .
Licensing
QX is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
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
Hashes for qxelarator-0.4.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ba092786b6a182f3c485d0200cf232cf61532f3047f70c31b659450fadff5c |
|
MD5 | 3d9a3929dda417b8949fba75924090e9 |
|
BLAKE2b-256 | 8ebfae8e3281eb40bcd6c2dd875d043930e0994c642423d203cc8bfcc08d741b |
Hashes for qxelarator-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0062a3c8d91693f536062467e23f185276ec132df3e2e4abe282a3ae7bcbca83 |
|
MD5 | 8eaaac3359ee9033ef28ed8f4a21b07f |
|
BLAKE2b-256 | 38345ead723345627570c9d443b19f8c3139f305e08becd681164827897c8b12 |
Hashes for qxelarator-0.4.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c8dcf2c7037d86262f3864612bae02646c6c32a352c5e96bd2bcb407838fdf |
|
MD5 | dd4eda8bd82ce6ebe7c569563285ec27 |
|
BLAKE2b-256 | bc81506d0e1f575092010f71083959db6dad4e101ab64d9e1a1bd8880fdb2e76 |
Hashes for qxelarator-0.4.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6616205cf365aa59c7eaae28fb79e5b77c5f991787e0718c93deed23f85642a6 |
|
MD5 | 0365a7adc8fa34e9cf9a28c9a0c5ff76 |
|
BLAKE2b-256 | 23c815eec9cdbe887072b5f4679b919418a43f34f2dda742727a6c9195b10d34 |
Hashes for qxelarator-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b855c7706bddb828b4faa45c2ff6bedbe533929bc5e42edf463a64d5b5483bd5 |
|
MD5 | f4fe64ec06e4e9b26e10f1b8a11c817f |
|
BLAKE2b-256 | 94927c7297101d41e10e981c724c9b77c339d0a29425e5fddcf7f55f39cc9f2e |
Hashes for qxelarator-0.4.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d52606294273ded13b0855a8986565f1e0eeadb94c3ad40d952ba5c87169c3 |
|
MD5 | d849203da1c09d5e82d8a22b5705bcea |
|
BLAKE2b-256 | 4a18a6502d746332fb23e1d140f90470c9b4b280c5fbd369a4b9ea0ab4f9c054 |
Hashes for qxelarator-0.4.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 661bc6446cbf18624008a8bf49346d28be057fb68acd29ebc6065cb25a1a2b2e |
|
MD5 | 627063277a85aaa7a5c7fa2b78d0eeab |
|
BLAKE2b-256 | ce904460d65b43f61f3d42eeea1b4ab069f802fdb44a04187809e0cd290e9dfc |
Hashes for qxelarator-0.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df9179cd2024554df37fb1869ea9ae0979208e7ca485d7a18a6a2063d167cff |
|
MD5 | 525928e3a7ddce43b7b988ee36f7518e |
|
BLAKE2b-256 | 2596d8ad9d742707e2d966bb7a131401ec611d1a5d0944672b4fcfabf5e02f42 |
Hashes for qxelarator-0.4.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 033fa6e9cd11edb1faee7b965f7ef15ef10bd22932dd0f2253031182517f6b24 |
|
MD5 | 39d923ece46f096ed3596fca6c4b41cf |
|
BLAKE2b-256 | d0544fa8ee2ed6dd7e7a09c255b5551e3936be2f5f705380d83b2b50bde7277b |
Hashes for qxelarator-0.4.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f6722647df43d15d9c657e8effcf4d6f186fdca68fbad8a5ac70bd9564f8e2 |
|
MD5 | e75a879adb94ab7d972ad91fdcb23c1a |
|
BLAKE2b-256 | ea63c398f34329f74d017c35af255ae5ac8f7b3ba720202fcc679f766c9e55c0 |
Hashes for qxelarator-0.4.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7982b46266f5877b5213fa9e2abfb32dcaa13cf03f1752489a71841256e85618 |
|
MD5 | bfce42b163b9056aa31cc60d3f4b8eb7 |
|
BLAKE2b-256 | 41c7f9a3f1204f7ee351acfae327a718768ebf1bffcf95004a1b2a0323dbcdd3 |
Hashes for qxelarator-0.4.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b9d7489b5a48a32151ef3267cfd7d140dbd86eb06f85d46f0bb9df9ae54113 |
|
MD5 | 1cee911b57d7f0402d85061bad6ac84d |
|
BLAKE2b-256 | df1bf7ff1c5d8829a1adea1cc0140879b34ef870ea0ce927fedd72c7c51692bd |