Skip to main content

A tool to access the quantum devices from the QUDORA Cloud using Python.

Project description

QUDORA SDK

The QUDORA Software Development Kit (SDK) enables an interaction with quantum devices hosted on the QUDORA Cloud from Python code.

The included Qiskit-provider allows direct execution of Qiskit-QuantumCircuits on the QUDORA Cloud quantum devices.

Installation

To install the latest version of the QUDORA SDK run

pip install qudora-sdk

Qiskit-Provider Usage

This section explains the usage of the included Qiskit-provider to access QUDORA Cloud quantum devices. In order to use the provider an API-Token from the QUDORA Cloud is required. Such a token can be generated here.

Access to Quantum Devices

To authenticate with the QUDORA Cloud the provider requires the generated API-Token, which is here called my-example-token.

from qudora_sdk.qiskit import QUDORAProvider

provider = QUDORAProvider(token="my-example-token")

If the authentication was successful, all available quantum devices can be listed.

print(provider.backends())

Selecting a particular backend is done with the get_backend() function.

backend = provider.get_backend('QVLS Simulator')

Running Qiskit-QuantumCircuits

The quantum devices can execute QuantumCircuit-objects written with Qiskit. More information about writing circuits with qiskit can be found here. Previously created Backend-objects have a run()-function to submit circuits to a selected backend.

qc = QuantumCircuit(2,2)
qc.h(0)
qc.cx(0,1)

qc.measure(0,0)
qc.measure(1,1)

job = backend.run(qc, job_name='My example job')

The job object represents a job in the QUDORA Cloud. Its status can be retrieved by calling job.status(). To obtain the result of a job, the result() function can be called. This function will wait until the job finishes and return the measurement results.

result = job.result()
print(result)

Mid-circuit measurements and if statements based on Qiskit's dynamic circuits are also supported. See below for a simple example:

qc = QuantumCircuit(1,1)

qc.h(0)
qc.measure(0,0)
with qc.if_test((0, 1)):
    qc.x(0)
qc.measure(0,0)

(!) Note about mid-circuit measurements

Mid-circuit measurements are supported, but there is a small caveat. For our backends, measurements include an implicit reset. That means that the following two circuits are equivalent on our backends:

qc.measure(0, 0)

and

qc.measure(0, 0)
qc.reset(0)

In other words: qubits do not preserve their state after a measurement. This deviation from the standard rules of quantum mechanics is due to the nature of our trapped-ion qubits and how the measurement process is implemented. Should you need access to the post-measurement state, you can manually reset the qubit to the post-measurement state by using the dynamic circuit given in the example above.

The support of qiskit dynamic circuits allows users to try out sophisticated error-correction schemes and analyse their performance against a realistic noise model.

Customised Settings

A backend has parameters (mostly used for noise models), which you can modify to your needs. You can list all available settings using the show_available_settings()-method.

backend.show_available_settings()

To run a job with custom settings, you can pass a settings dictionary to the run() method.

custom_settings = {
    'measurement_error_probability': 0.005,
    'two_qubit_gate_noise_strength': 1.0
}

job = backend.run(qc, job_name='Job with custom settings', backend_settings=custom_settings)

LICENSE

Copyright (C) 2025 QUDORA GmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

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

qudora_sdk-1.1.2.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qudora_sdk-1.1.2-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file qudora_sdk-1.1.2.tar.gz.

File metadata

  • Download URL: qudora_sdk-1.1.2.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for qudora_sdk-1.1.2.tar.gz
Algorithm Hash digest
SHA256 ab0df37dd779942734778fc7fd3c5026d73758d4c9476409c84de4487b071bb1
MD5 63e4e3282df2a73921c05bb52e3f65d7
BLAKE2b-256 0b071a80da98bc800004233ac980acbca1493cebd510650c3c1475ff450e3d3d

See more details on using hashes here.

File details

Details for the file qudora_sdk-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: qudora_sdk-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for qudora_sdk-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db5a11d93ce06021db88bd7c27eae02050721846635dbd606cc0e04737a2a67a
MD5 8bb8ab9b467d8915bbb49e292292983b
BLAKE2b-256 36e51af9a81178aa0fe15efa2eadf5b9c8447a8bfa66b6efc02eef3dc10bc10f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page