Skip to main content

RydOpt - A Multiqubit Rydberg Gate Optimizer

docs tests pypi

RydOpt is a Python package for the optimization of laser pulses implementing two- and multiqubit Rydberg gates in neutral atom quantum computing platforms. The optimization methods support GPUs and multi-core CPUs, using an efficient implementation based on JAX.

Install the software with pip (requires Python ≥ 3.10; for enabling GPU support and tips, see our extended installation instructions):

pip install rydopt

Documentation and Minimal Usage Example

The package documentation can be found at https://rydopt.readthedocs.io/.

To get an idea how the software is used, we provide in the following a minimal usage example. The code optimizes a pulse to realize a CZ gate on two atoms in the perfect blockade regime.

import rydopt as ro
import numpy as np

# Want to perform a CZ gate on two atoms in the perfect blockade regime; no Rydberg state decay
gate = ro.gates.TwoQubitGate(phi=None, theta=np.pi, Vnn=float("inf"), decay=0.0)

# Pulse ansatz: constant detuning, sweep of the laser phase according to a sine CRAB ansatz
pulse_ansatz = ro.pulses.SinglePhotonPulseAnsatz(detuning_ansatz=ro.pulses.Const(), phase_ansatz=ro.pulses.SinCrab(2))

# Initial pulse parameter guess
initial_params = ro.pulses.PulseParams(duration=7.0, detuning_params=[0.0], phase_params=[0.0, 0.0])

# Optimize the pulse parameters
opt_result = ro.optimization.optimize(gate, pulse_ansatz, initial_params, tol=1e-10)
optimized_params = opt_result.params

# Plot the pulse
ro.characterization.plot_pulse(pulse_ansatz, optimized_params)

Citing RydOpt

If you find this library useful for your research, please cite:

D.F. Locher, J. Old, K. Brechtelsbauer, J. Holschbach, H.P. Büchler, S. Weber, M. Müller, Multiqubit Rydberg Gates for Quantum Error Correction, PRX Quantum 7, 020354 (2026)

Contributors

The following people have, so far, contributed to the development of RydOpt:

We warmly welcome new contributions! Please refer to the contributor guide for more information!

The development of RydOpt has been supported by Forschungszentrum Jülich, RWTH Aachen University, University of Stuttgart, and the company ParityQC. We acknowledge support from the Federal Ministry of Research, Technology and Space (BMFTR) through the grant MUNIQC-Atoms and from the German Research Foundation (DFG) through the priority programme SPP 2514.

License

The RydOpt software is licensed under the MIT License.

Metadata

Release files for RydOpt 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RydOpt 0.4.0
File Size Uploaded Provenance Actions
rydopt-0.4.0.tar.gz 47.5 kB With provenance Details for rydopt-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RydOpt 0.4.0
File Interpreter ABI Platform Actions
rydopt-0.4.0-py3-none-any.whl Python 3 none any Details for rydopt-0.4.0-py3-none-any.whl

Total release size: 118.7 kB

Release files / rydopt-0.4.0.tar.gz

Download URL rydopt-0.4.0.tar.gz
Size 47.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e04e49e68d48d684bd0cd169efa202f6f4704aeae58f3fcdd8ad0f34d4466de7
BLAKE2b-256 checksum
How to use checksums
12a771540a8c43f66e97bee717c7b839caac12ca7ba86b581aac9dc8006f0e20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.

Transparency log

Release files / rydopt-0.4.0-py3-none-any.whl

Download URL rydopt-0.4.0-py3-none-any.whl
Size 71.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
053a953a922172d7012bc34415d1d7b01f14b241f0a0d911d70bca9be38a192c
BLAKE2b-256 checksum
How to use checksums
e9132dcc95caeae83ef17a65fc4ec35cea9e33de57a6a4a8acf47c6a46a27b89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.

Transparency log

Security for RydOpt 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rydopt-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page