Client for executing quantum applications on QServer instances
Project description
qclient
Client for running quantum applications on qserver instances. See https://quantum.tecnalia.com.
Install
pip install qclient
Usage
import qclient
qclient.configure({'token': 'YOUR_TOKEN'})
print(qclient.get('bell'))
print(qclient.execute('bell'))
print(qclient.execute(circuit.qasm()))
Methods
- configure({ server?, ext? ,token? }):
server: default server at https://quantum.tecnalia.com.ext: default '.qasm', useful in case always using the same language to represent the algorithm.token: default '', authorization token to execute services. E.g.:configure({"token':'kkajsdkj-sudiuawjd...."}). - get(algorithm_name): the algorithm in plain text, the extension of the file is optional. E.g.:
get('bell'). - execute(algorithm_name or algorithm_description): based on the extension, an engine executes the algorithm and provides the result as string (depending on the engine, the result format can vary). E.g.:
execute('bell'). If the algorithm is not stored yet, it can be executed by providing the text representation (in qasm, quil, etc.). E.g: execute('...qasm_string').
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.6.tar.gz
(3.5 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.6.tar.gz.
File metadata
- Download URL: qclient-1.0.6.tar.gz
- Upload date:
- Size: 3.5 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 |
c90a45f0aea4ca30baf94e6f99ee26791628a7622ec47fdba69772be27240ced
|
|
| MD5 |
130bba6e6541310e174491286776dff1
|
|
| BLAKE2b-256 |
2425d4590d5416cb46653feb425984a43a4bdb1f341d804c6ab571699f784597
|
File details
Details for the file qclient-1.0.6-py3-none-any.whl.
File metadata
- Download URL: qclient-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.1 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 |
e5bed8fbfa8d6787686b2c4810d43ba881fb916870bbc9dc0a1481103b503cd5
|
|
| MD5 |
584468c2917a9a6fcedf3fd576f07cd4
|
|
| BLAKE2b-256 |
f2df6674e28f8b6ba6f627650858b85390eea551a4e80d9ae77699e535616f11
|