Provider for running Qiskit circuits on Alice & Bob QPUs and simulators
Project description
Alice & Bob Qiskit provider
This project contains a provider that allows access to Alice & Bob QPUs from the Qiskit framework.
Installation
You can install the provider using pip
:
pip install qiskit-alice-bob-provider
pip
will handle installing all the python dependencies automatically and you
will always install the latest (and well-tested) version.
Use your Alice & Bob API key
To obtain an API key, please contact Alice & Bob.
You can initialize the Alice & Bob provider using your API key locally with:
from qiskit_alice_bob_provider import AliceBobProvider
ab = AliceBobProvider('MY_API_KEY')
Where MY_API_KEY
is your API key to the Alice & Bob API.
print(ab.backends())
backend = ab.get_backend('SINGLE_CAT_SIMULATOR')
The backend can then be used like a regular Qiskit backend:
from qiskit import QuantumCircuit, execute
c = QuantumCircuit(1, 2)
c.initialize('+', 0)
c.measure_x(0, 0)
c.measure(0, 1)
job = execute(c, backend)
res = job.result()
print(res.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
Close
Hashes for qiskit_alice_bob_provider-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9281c6165a90ca2fbc193c5e2f21c831bacc76a14832f317ca6133ec08f9cb |
|
MD5 | 7ff15c039629e7f8b7760b1751d5bf0d |
|
BLAKE2b-256 | 78718f883c9b3726ea37bc69f7b3f13f8a59cc206fdbde243f883e5f15455cfb |
Close
Hashes for qiskit_alice_bob_provider-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b63264d95ffebda50c1948cba9a05e9031b74aa2ab6a29bb7934a12aa47395e9 |
|
MD5 | 5f5e4a87e8cd80a8c1c4ece85b6b2e9b |
|
BLAKE2b-256 | d196543bde995ce7ad4cf7aa48a33543061ca552708d4de17ac235dba234878c |