AQTBackend#
- AQTBackend(api_token, device_instance, workspace)[source]#
This class instantiates a VirtualBackend using an AQT backend. This allows easy access to AQT backends through the qrisp interface.
Using this backend requires addtional dependencies:
pip install qiskit-aqt-provider
.- Parameters:
- api_tokenstr
An API token for AQT ARNICA.
- device_instancestr
The device instance of the AQT backend such as “ibex” or “simulator_noise”. For an up-to-date list, see the AQT ARNICA website.
- workspacestr
The workspace for a company or project.
Examples
We evaluate a QuantumFloat multiplication on the 12-qubit AQT IBEX.
>>> from qrisp import QuantumFloat >>> from qrisp.interface import AQTBackend >>> # qrisp_ibex = AQTBackend(api_token = "YOUR_AQT_ARNICA_TOKEN", device_instance = "simulator_noise", workspace = "aqt_simulators") >>> qrisp_ibex = AQTBackend(api_token = "YOUR_AQT_ARNICA_TOKEN", device_instance = "ibex", workspace = "YOUR_COMPANY_OR_PROJECT_NAME") >>> a = QuantumFloat(2) >>> a[:] = 2 >>> b = a*a >>> b.get_measurement(backend = qrisp_ibex, shots = 100) {4: 0.49, 8: 0.11, 2: 0.08, 0: 0.06, 14: 0.06, 5: 0.04, 12: 0.04, 13: 0.03, 3: 0.02, 10: 0.02, 15: 0.02, 6: 0.01, 7: 0.01, 11: 0.01}