Skip to main content

Qiskit provider for AQT backends

Project description

Qiskit AQT Provider

License Build Status

Qiskit is an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.

This project contains a provider that allows access to AQT ion-trap quantum system.

Installation

You can install the provider using pip tool:

pip install qiskit-aqt-provider

pip will handle installing all the python dependencies automatically and you will always install the latest (and well-tested) version.

Setting up the AQT Provider

Once the package is installed, you can use it to access the provider from qiskit.

Use your AQT credentials

You can initialize an AQT provider using your token locally with:

from qiskit_aqt_provider import AQTProvider
aqt = AQTProvider('MY_TOKEN')

Where MY_TOKEN is your access token for the AQT device. Then you can access the backends from that provider:

print(aqt.backends())
backend = aqt.backends.aqt_qasm_simulator

You can then use that backend like you would use any other qiskit backend. For example, running a bell state:

from qiskit import QuantumCircuit, transpile
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0,1], [0,1])
trans_qc = transpile(qc, backend)
job = backend.run(trans_qc)
print(job.get_counts())

For running the quantum circuit on the ion-trap quantum device you need to use aqt_innsbruck as backend, which needs a different access token.

License

Apache License 2.0.

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-aqt-provider-0.4.3.tar.gz (15.9 kB view hashes)

Uploaded source

Built Distribution

qiskit_aqt_provider-0.4.3-py3-none-any.whl (18.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page