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.providers.aqt import AQT
aqt = AQT.enable_account('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 = pro.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)
result = backend.run(trans_qc).result()
print(result.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.3.0.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

qiskit_aqt_provider-0.3.0-py3-none-any.whl (17.5 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