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

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

Uploaded Source

Built Distribution

mqp_qiskit_provider-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mqp_qiskit_provider-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.17.1 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for mqp_qiskit_provider-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4eb72fb1ce8ef49dfe7bef5becf1524dfc0ffba16de0eae204b44f8e692ca0fa
MD5 cee46abaf126aca68692505ba1a4762a
BLAKE2b-256 0d6302726f7a2c22a353e3129e1209fa64090ff74c47a7fa72cab8f76791ebff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mqp_qiskit_provider-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd371846e23317b3fa6f9a0053415782823b1819f41efbd4d30cad466f4272f5
MD5 fb3c9e96581db89e51dad3757c4dfca0
BLAKE2b-256 e8edf74c9b90a5b885e21eb26428481acedec5744a69a5f013b90004aa00752a

See more details on using hashes here.

Supported by

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