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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c73c644f6d7ce0dbb8ea8bf1f8c18324b4c9de83bbde7a8ed2d190f6eb813d09 |
|
MD5 | b4b67743e213b182dd4adc7c7049f155 |
|
BLAKE2b-256 | 2f84087bb7b978ce048a6e143e4761ec5476f0e29c69231c1c19766631d78431 |
Close
Hashes for qiskit_alice_bob_provider-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d099abb89fc0fdd500ac4b6a06720a373d8d810112abae09eb8f060700c9671 |
|
MD5 | c7cb1c03f102206b26bda2893292b26c |
|
BLAKE2b-256 | 33d8dac7a9a1f04ccabae0e9a1392c635fb8cdfe9c6a6764f5ec15929b6db68f |