An easy-to-use but flexible distributed quantum computing simulator.
Project description
dqc_simulator
An easy-to-use distributed quantum computing simulator
With many simulators, specifying a quantum algorithm is as easy as specifying a quantum circuit. Why can't things be as simple for distributed quantum computers (DQCs)? With dqc_simulator they can! A python package built on top of the more general quantum network simulation library NetSquid, dqc_simulator allows users to simply simulate quantum circuits on near-arbitrary, user-specifiable DQC hardware. The package aims to retain the flexibility and power of NetSquid while automatically handling some of the messier details of applying NetSquid to the DQC setting.
Key features:
- Easy-to-use interface for specifying distributed quantum circuits.
- Automatic partitioning of monolithic (single-processor) quantum circuits between quantum processing units (QPUs). Arbitrary algorithms for doing this can be specified by the user if desired, using the DQC circuit interface. Circuits can be specified as a list of tuples or as a .qasm file.
- Automatic management of remote gates and communication qubits.
- Automatic compilation using pre-made compilers. The user can also easily specify their own.
Requirements
Note that the NetSquid requirement is not enforced at
Installation instructions for users
First, if you do not already have one, create a NetSquid account using the instructions here. Much of the package's functionality
relies on NetSquid and so this is important to make full use of the package. However, you do not need install NetSquid at this stage because it will be done automatically in the next step. At the end of the NetSquid account creation process you should have a username and
password. In what follows replace <USERNAME> and <PASSWORD> with the username and password for your
Netsquid account.
With a NetSquid account created, dqc_simulator and all of its dependencies can be installed with the command:
pip install --extra-index-url https://<USERNAME>:<PASSWORD>@pypi.netsquid.org dqc_simulator
where <USERNAME> and <PASSWORD> are the username and password for your NetSquid account.
If all of the dependencies have already been installed, then you can install dqc_simulator using the command
pip install dqc_simulator
because the --extra-index-url was only required by the dependencies. dqc_simulator in of itself does not require an account.
Installation instructions for developers
To install the package from source use the command
git clone https://github.com/km-campbell/dqc_simulator.git
To make your NetSquid account credentials available during package installation, use the commands
export UV_INDEX_NETSQUID_USERNAME=<USERNAME>
export UV_INDEX_NETSQUID_PASSWORD=<PASSWORD>
where <USERNAME> and <PASSWORD> are the username and password for your NetSquid account. You can also store your
NetSquid authentication details using any other method of choice
compatible with the uv package manager.
Once your NetSquid authentication credentials are made available, install dqc_simulator using the command
pip install dqc_simulator
Documentation
The documentation is available via readthedocs here.
Alternatively, the project documentation can be built locally by cloning the repository, as detailed above, and then using the commands
cd docs
make html
A version of the documentation will then be available in the docs/build directory. Within that directory open index.html to access the documentation.
Acknowledgements
I acknowledge the use of modified code from nuqasm2 in the qasm2ast module subject to the Apache 2.0 license included above under the name LICENSE4qasm2ast_base_code. It is explicitly stated in any modules where modified nuqasm2 code is used.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 dqc_simulator-0.2.4.tar.gz.
File metadata
- Download URL: dqc_simulator-0.2.4.tar.gz
- Upload date:
- Size: 87.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"20.04","id":"focal","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1870ae7fb0fd771e4768e6df61ce82dffdc1d4ace2417daf57f4f320f635917
|
|
| MD5 |
4ba959d274c34d056727a4cfe4220a9b
|
|
| BLAKE2b-256 |
26004c9ea38533253c57765bb968241d77176b096c454adcdb9777598a60cb3d
|
File details
Details for the file dqc_simulator-0.2.4-py3-none-any.whl.
File metadata
- Download URL: dqc_simulator-0.2.4-py3-none-any.whl
- Upload date:
- Size: 98.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"20.04","id":"focal","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22946a31533a5b2f0cff54906da96395bf2c9a52a7b04564db4b90cfcc714e9b
|
|
| MD5 |
959b6ccd45e424557a35a8905cbf75c6
|
|
| BLAKE2b-256 |
81666d507a970c5381d82b47ae8f16f91e47f0a28f70058bd1bdf7d99bcef7ef
|