Skip to main content

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()

Changelog

See the CHANGELOG for details on changes in each version.

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

mqp_qiskit_provider-0.1.4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

mqp_qiskit_provider-0.1.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file mqp_qiskit_provider-0.1.4.tar.gz.

File metadata

  • Download URL: mqp_qiskit_provider-0.1.4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.21.0 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for mqp_qiskit_provider-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fd79b042bc69d62565a0d9b1101775e15a1dcb62d2192b35467e7bad6e963c62
MD5 9d3bb6f725fed43a15a1d097d1e5cc29
BLAKE2b-256 50d9a75d145041ccc9a87d3ea0104d439d6cdd4058920a358f4b15720c0c4b2c

See more details on using hashes here.

File details

Details for the file mqp_qiskit_provider-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: mqp_qiskit_provider-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.21.0 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for mqp_qiskit_provider-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b190f4c9dbac96a8aa84a7b2d2ed32b0d91bd8a5d364a4a48b43234420682874
MD5 edb94d4073cd465b5f4d85eac4a6873a
BLAKE2b-256 47d13d262a4aa92f0ff49f6852edcc13676038f8e13ec63218c59ab166037ca0

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