No project description provided
Project description
mqp-qiskit-provider
Installation
pip install mqp-qiskit-provider
Usage
from qiskit import QuantumCircuit
from mqp.qiskit_provider import MQPProvider
# instantiate the MQP provider with your api token
provider = MQPProvider(token="<api-token>")
# get a list of all backends you have access to
all_backends = provider.backends()
# get a specific backend by its name
backend = provider.get_backend("<resource-name>")
# create a circuit
circuit = QuantumCircuit(2, 2)
circuit.h(0)
# .....
# create a job and get the results
# (currently one one circuit per job)
job = backend.run(circuit, shots=1000)
# query the status of the job
status = job.status()
# cancel the job
job.cancel()
# get the result of the job
result = job.result()
# get the job's resulting counts
counts = result.get_counts()
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
Built Distribution
File details
Details for the file mqp_qiskit_provider-0.1.2.tar.gz
.
File metadata
- Download URL: mqp_qiskit_provider-0.1.2.tar.gz
- Upload date:
- Size: 3.4 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 | bdca187e532c9f78c277b60ff1f4daceaaa27b03df728367939c998236287405 |
|
MD5 | fa5cfaa661a1c7beff00844e0d6721cc |
|
BLAKE2b-256 | c93592a513ce4ff3aaefc66114a688b16d675bee8d871a6b511e600b863ee16c |
File details
Details for the file mqp_qiskit_provider-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mqp_qiskit_provider-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.8 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 | 5ec91a1cb67c3233f1296c0f93afdde8c3c0cf155caf3cb203cd424fd4905c4c |
|
MD5 | cfdfe0637b9182d26ef0d8797138fcd1 |
|
BLAKE2b-256 | 863a9d0d2f78b3be11f0c7841e98bc75f3412e02b921c9e024175ef5571698ab |