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').
Release files for qclient 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qclient-1.0.6.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qclient-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / qclient-1.0.6.tar.gz
| Download URL | qclient-1.0.6.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c90a45f0aea4ca30baf94e6f99ee26791628a7622ec47fdba69772be27240ced
|
|
BLAKE2b-256 checksum How to use checksums |
2425d4590d5416cb46653feb425984a43a4bdb1f341d804c6ab571699f784597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / qclient-1.0.6-py3-none-any.whl
| Download URL | qclient-1.0.6-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5bed8fbfa8d6787686b2c4810d43ba881fb916870bbc9dc0a1481103b503cd5
|
|
BLAKE2b-256 checksum How to use checksums |
f2df6674e28f8b6ba6f627650858b85390eea551a4e80d9ae77699e535616f11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|