Client for executing quantum applications on qserver instances
Project description
qclient
Install
pip install qclient
Usage
import qclient
from sys import argv
#qclient.configure({ 'server': 'http://localhost:8080' })
token = 'YOUR_TOKEN' if len(argv) < 2 else argv[1]
qclient.configure({'token': token, 'server': 'http://localhost:8080'})
# [optional] display file to be executed
print(qclient.get('bell')) # default extension
# print(qclient.get('bell.qasm')) # explicit extension
# execute and return
print('Executing...')
print(qclient.execute('bell'))
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
qclient-1.0.3.tar.gz
(2.9 kB
view details)
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 qclient-1.0.3.tar.gz.
File metadata
- Download URL: qclient-1.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
406fb2504da3078191dbd082cba70d9d507a2525b91a6ee014aff6252dc07988
|
|
| MD5 |
f517c4a625a4c313fb58c1e8de195daf
|
|
| BLAKE2b-256 |
8d77ea25eab87cda23bfcbb091812b4377f3a8770b0d6f610bd21ca84124a007
|
File details
Details for the file qclient-1.0.3-py3-none-any.whl.
File metadata
- Download URL: qclient-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deeb5e6ede7b2914f8917d411fd839abee33e052d35e114e1aa92f116a9b062e
|
|
| MD5 |
d9b62b8084c599303d441cb7fa0e8836
|
|
| BLAKE2b-256 |
3a9f61e46baff41b9528318d53aa511892cbe9df80c5b70e7e699825d234256f
|