Skip to main content

IDDEFIX

Originally forked from https://github.com/SebastienJoly/IDDEFIX

Impedance Determination through Differential Evolution FItting and eXtrapolation.

Ruff ty PyPI - Version PyPI - License Documentation Status nightly_tests_CPU_python3.15

IDDEFIX is a physics-informed resonator fitting framework that fits resonator-based models, parameterized by shunt impedance $R_s$, resonant frequency $f_r$, and quality factor $Q$, to wakefield simulation data (wake functions, wake potentials, or impedances) both in longitudinal and transverse planes. It uses evolutionary optimization algorithms, such as Differential Evolution and CMA-ES, to determine the resonator parameters that best reproduce the simulated electromagnetic response.

By representing wakefield data through a compact $\sum_i (R_{s,i}, Q_i, f_{r,i})$ analytical model, IDDEFIX enables the characterization and extrapolation of wakefields beyond the simulated range. This can significantly reduce the simulation time required to capture long-range wakefield effects while preserving the accuracy of the reconstructed response.

About

🚀 IDDEFIX features:

  • Resonators formulas

    • Longitudinal and transverse impedance (Fully/ partially decayed)
    • Longitudinal and transverse wake
    • Longitudinal and transverse wake potentials
  • Differential Evolution algorithm for fitting resonsators to impedance

  • Smart Bound Determination for precise and easy boundary setting

How to install

IDDEFIX is deployed to the Python Package Index (pyPI) and is tested nightly on Python 3.11 to 3.15. To install it in a conda environment do:

pip install iddefix             # core dependencies
pip install iddefix['notebook']  # notebook dependencies for interactive use
pip install iddefix['all']      # with 'notebook' + pyfde

It can also be installed directly from the Github source to get the latest changes:

pip install git+https://github.com/ImpedanCEI/IDDEFIX

How to use / Examples

IDDEFIX is documented using Sphinx and ReadTheDocs. Documentation is available at: http://iddefix.readthedocs.io/

Check 📁 examples/ for different DE resonator fitting cases

  • Analytical resonator initialization and fitting
  • Resonator fitting on longitudinal accelerator cavity simulation and extrapolation
  • Resonator fitting on longitudinal beam wire scanner simulation with coupled modes
  • Resonator fitting on transverse SPS transistion data and extrapolation
  • Resonator fitting on transverse broadband (Q<0.5) Kicker data

Contributors 👩‍💻 👨‍💻

Publications about iddefix

  • S. Joly, Resonator impedance extrapolation of a partially decayed wake presentation @ CERN ABP-CEI section meeting link
  • S. Joly, PhD Thesis Recent advances in the CERN PS impedance model and instability simulations following the LHC Injectors Upgrade project Sapienza Universita di Roma link
  • M. Raschke, Evolutionary Algorithms for Wakefields @ CERN ABP-CEI section meeting link
  • B. Figueiredo, Using Xsuite and (CMA-ES) genetic methods to optimize FCC GHS momentum acceptance @ CERN ABP-CAP section meeting link

Nightly Test badges

manual_tests_CPU_python11 nightly_tests_CPU_python3.11 nightly_tests_CPU_python3.12 nightly_tests_CPU_python3.13 nightly_tests_CPU_python3.14 nightly_tests_CPU_python3.15

Metadata

Release files for iddefix 0.3.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 iddefix 0.3.0
File Size Uploaded Provenance Actions
iddefix-0.3.0.tar.gz 77.3 kB With provenance Details for iddefix-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 136.6 kB

Release files / iddefix-0.3.0.tar.gz

Download URL iddefix-0.3.0.tar.gz
Size 77.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9dff06779fe6bc914d99638a4afb5d6bd1b0aab0748e1d53e1526b979d59dc8c
BLAKE2b-256 checksum
How to use checksums
0c34fe2252cc9e6ce7e6fc1a139f082e08c535473e8a1fd16a59bc5f09143642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 20, 2026.

Transparency log

Release files / iddefix-0.3.0-py3-none-any.whl

Download URL iddefix-0.3.0-py3-none-any.whl
Size 59.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca488406854d0c64989e060ce77c1e01ef1668dd5c38dc1ff3d07a035acd7183
BLAKE2b-256 checksum
How to use checksums
fa7913bd1c865610218f8178aa818c115aeab0479db837c32936ac947c3001d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 20, 2026.

Transparency log

Security for iddefix 0.3.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iddefix-0.3.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 Oct 20, 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