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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 658489ce8c9f1d09f65cc68005520c907655b45d0c1bad0356bcd5c4f99d29ff |
|
MD5 | 3289005438712e45676d1181c64050b5 |
|
BLAKE2b-256 | 4d01c2f8348bdd539233371911cb8a992809412bb932f1377a4a98e6b2d23e8b |
Close
Hashes for qiskit_alice_bob_provider-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f4b519635a407b7a3039f8715fc4e52c0cd255811445a343a411c50b880abc |
|
MD5 | eefa4058d1eaa1842469c92714fc6ce7 |
|
BLAKE2b-256 | 9bb6996e15956fb75659850999ed156715ab363f66adee32e5e24ea48709293d |