Metadata-Version: 2.1
Name: mqp-qiskit-provider
Version: 0.1.5
Author-Email: mqss <mqss@munich-quantum-valley.de>
License: Apache-2.0
Requires-Python: <3.12,>=3.8
Requires-Dist: qiskit<1.3,>=0.45
Requires-Dist: requests>=2.32.3
Requires-Dist: python-decouple>=3.8
Requires-Dist: mqp-client>=0.1.4
Requires-Dist: qiskit-qasm3-import>=0.5.1
Description-Content-Type: text/markdown

# mqp-qiskit-provider

## Installation

```shell
pip install mqp-qiskit-provider
```

## Usage

```python
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](CHANGELOG.md) for details on changes in each version.
