Skip to main content

Qiskit provider for AQT backends

Project description

Qiskit AQT Provider

LicenseBuild Status

Qiskit is an open-source framework for working with noisy intermediate-scale quantum computers (NISQ) at the level of pulses, circuits, and algorithms.

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

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.

Files for qiskit-aqt-provider, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size qiskit_aqt_provider-0.4.2-py3-none-any.whl (18.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size qiskit-aqt-provider-0.4.2.tar.gz (11.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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