Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qiskit_alice_bob_provider-0.1.0.tar.gz (18.9 kB view hashes)

Uploaded Source

Built Distribution

qiskit_alice_bob_provider-0.1.0-py3-none-any.whl (23.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page