Skip to main content

Multiqubit Rydberg Gate Optimizer

Project description

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.

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

rydopt-0.4.0.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

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

rydopt-0.4.0-py3-none-any.whl (71.2 kB view details)

Uploaded Python 3

File details

Details for the file rydopt-0.4.0.tar.gz.

File metadata

  • Download URL: rydopt-0.4.0.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rydopt-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e04e49e68d48d684bd0cd169efa202f6f4704aeae58f3fcdd8ad0f34d4466de7
MD5 187dc156142e3f2ee7c478359107342b
BLAKE2b-256 12a771540a8c43f66e97bee717c7b839caac12ca7ba86b581aac9dc8006f0e20

See more details on using hashes here.

Provenance

The following attestation bundles were made for rydopt-0.4.0.tar.gz:

Publisher: publish.yml on dflocher/rydopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rydopt-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: rydopt-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 71.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rydopt-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 053a953a922172d7012bc34415d1d7b01f14b241f0a0d911d70bca9be38a192c
MD5 5e9e6fa6b92c8b9edebae0f48b0628c0
BLAKE2b-256 e9132dcc95caeae83ef17a65fc4ec35cea9e33de57a6a4a8acf47c6a46a27b89

See more details on using hashes here.

Provenance

The following attestation bundles were made for rydopt-0.4.0-py3-none-any.whl:

Publisher: publish.yml on dflocher/rydopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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