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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qiskit_alice_bob_provider-0.1.0.tar.gz.
File metadata
- Download URL: qiskit_alice_bob_provider-0.1.0.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1a0d92cfc1f9d0b1e653377a5b84a2cd28629ef361f901f5cc1c610a7edcde5
|
|
| MD5 |
8344ff68d546ef272ae151f12986e2e4
|
|
| BLAKE2b-256 |
74bc732b7efdb6198aa9ad125de34fccbd6a6ad49bb76442d77971c146886f9d
|
File details
Details for the file qiskit_alice_bob_provider-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qiskit_alice_bob_provider-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3acdc5fdef90895f5a32cc97fe5a893682a65165a0f15628d57049f1e6a722b3
|
|
| MD5 |
fb504a86fa52b897149828bd3477fbda
|
|
| BLAKE2b-256 |
761f92c5d5be876262d9b8997d7c3659fa296189faae58cce8e1d0f04c87e813
|