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.
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.
Once the package is installed, you can use it to access the provider from qiskit.
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 = aqt.get_backend('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 *
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0,1], [0,1])
result = execute(qc, backend, shots=100).result()
print(result.get_counts(qc))
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.
The Qiskit AQT provider is the work of many people who contribute to the project at different levels. If you use Qiskit, please cite as per the included BibTeX file.