Qiskit provider for Quantum Inspire backends
Project description
Qiskit Quantum Inspire Provider
Qiskit is an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.
This project contains a provider that allows access to Quantum Inspire quantum systems.
API Access
...
Installation
You can install the provider using pip:
pip install qiskit-quantuminspire
Provider Setup
To instantiate the provider, make sure you have an access token then create a provider:
from qiskit_quantuminspire import QIProvider
provider = QIProvider()
Once the provider has been instantiated, it may be used to access supported backends:
# Show all current supported backends:
print(provider.backends())
# Get Quantum Inspire's simulator backend:
simulator_backend = provider.get_backend("qx_emulator")
Submitting a Circuit
Once a backend has been specified, it may be used to submit circuits. For example, running a Bell State:
from qiskit import QuantumCircuit
# Create a basic Bell State circuit:
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])
# Run the circuit on Quantum Inspire's platform:
job = simulator_backend.run(qc)
# Print the results.
print(job.result().get_counts())
# Get results with a different aggregation method when debiasing
# is applied as an error mitigation strategy
print(job.result(sharpen=True).get_counts())
# The simulator specifically provides the the ideal probabilities and creates
# counts by sampling from these probabilities. The raw probabilities are also accessible:
print(job.result().get_probabilities())
Contributing
...
Running Tests
This package uses the pytest test runner, and other packages
for mocking interfactions, reporting coverage, etc.
These can be installed with poetry install
.
To use pytest directly, just run:
tox -e test
License
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 qiskit_quantuminspire-0.1.1.tar.gz
.
File metadata
- Download URL: qiskit_quantuminspire-0.1.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 286d2922a967967cb5e7136adfd24e6a40ba85e9ef6a1bcead54ae19be7ef443 |
|
MD5 | 42d40819701e880a24e6db93e7dabb0a |
|
BLAKE2b-256 | b24022a3265fe5db3339b544404e895387f301a6dd0de5b81b0673356f66082f |
File details
Details for the file qiskit_quantuminspire-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: qiskit_quantuminspire-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92310cd1d58ac078ff0ddbcba916a957b857ea40e7a5d0de106318956a0b0f8b |
|
MD5 | 82083acac9c6820185426c8165cb5bc9 |
|
BLAKE2b-256 | d07a1a0f851a72245f7e0f0869c8c9f2dc758b8f54abb66b7780e0fe32c8d484 |