No project description provided
Project description
Installation
pip install mqp-client
Usage
from mqp.client import MQPClient
URL = "<mqp-api-url>"
TOKEN = "<your-mqp-token>"
# create a client instance
client = MQPClient(token=TOKEN, url=URL)
# check out all the resources
resources = client.resources()
# get information about one specific resource
resource = client.resource_info(resource_name="<name-of-resource")
# send a job to the resource
qasm_circuit = "QASM 2.0; ...."
job_id = client.submit_job(resource_name="...", circuit=qasm_circuit, shots=1000)
# query the job's status
status = client.status(job_id)
# cancel the job
client.cancel(job_id)
# get the jobs result (returns None if job not finished yet)
result = client.result(job_id)
# wait for the result to come
result = client.wait_for_result(job_id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mqp_client-0.1.2.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file mqp_client-0.1.2.tar.gz
.
File metadata
- Download URL: mqp_client-0.1.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.17.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ddf164a7b50c71625f5f8dc19a96eaeb128ebb0b8d335d523763c55902491ba |
|
MD5 | eec02ea110001adca7316476d1656d16 |
|
BLAKE2b-256 | c3f1f19556041fc5e3ac8b4f9ef817838f0011592a08b04c79cda17cf850e2e1 |
File details
Details for the file mqp_client-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mqp_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.17.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7cc4e8598e4dd0db13f537bb3007f2b0e5c893ed18ff25968a34c0c826be69a |
|
MD5 | 9b2d1481728585236441108243fa2294 |
|
BLAKE2b-256 | 109db7239b9edf42ba60a044076bcdcf920a9721edbf5c89281cb8e70f6dce09 |