Skip to main content

Client for executing quantum applications at qserver

Project description

qclient

Install

pip install qserver

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.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qclient-1.0.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file qclient-1.0.1.tar.gz.

File metadata

  • Download URL: qclient-1.0.1.tar.gz
  • Upload date:
  • Size: 2.2 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

Hashes for qclient-1.0.1.tar.gz
Algorithm Hash digest
SHA256 76b03bf47a510fde5ef6a41ea36b7f92b360234a9ec19e5a44a264ada293c667
MD5 c901b467b99fd2946f27bb08b765399e
BLAKE2b-256 2c8d0fe396032f1aeaca05c560651b7fef55c8a16b7b8ac17d22327d13d0652d

See more details on using hashes here.

File details

Details for the file qclient-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: qclient-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.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

Hashes for qclient-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03ab00c63600a436b229dc9500b4f73b26bc8d1af9b80ce1b95c0a8cdc0b149e
MD5 bb49077775207e6c1eb4704161f7aed0
BLAKE2b-256 4cade8efbf844658ab15df232c24e3f46edb5c25b9f4ce472e6266c6afed9b6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page