Skip to main content

SynIM

Synthetic Interaction Matrix generator for Adaptive Optics systems

Documentation Status License: MIT

Overview

SynIM is a Python package for computing synthetic interaction matrices, projection matrices, and covariance matrices for adaptive optics (AO) systems. It supports both Single Conjugate AO (SCAO), Laser Tomography AO (LTAO), Ground Layer AO (GLAO) and Multi-Conjugate AO (MCAO) configurations with Shack-Hartmann sensors. It also supports GPU acceleration. Some of its functionalities are provided by SPECULA.

Key Features

  • 🔧 Interaction matrices for DM-WFS combinations (SCAO/MCAO)
  • 📊 Projection matrices for DM-Layer tomography (MCAO/LTAO)
  • 📈 Covariance matrices for MMSE reconstructor optimization
  • ⚙️ YAML/PRO configuration with automatic parameter parsing
  • 💾 SPECULA-compatible FITS format for data exchange
  • 🎯 Smart caching to minimize redundant computations
  • 🚀 GPU acceleration via CuPy for high-performance computation
  • 🧭 Mis-registration geometry (synim.registration): a geometric (not pixel-based) model of the relation between global (WFS/DM/guide-star) and local (per-pair) mis-registration in MCAO/GLAO systems, its inversion, and sensitivity/noise analysis - see the documentation

Documentation

Full documentation available at: synim.readthedocs.io

Slope Computation Methods

SynIM supports two slope computation methods for interaction matrices:

  • derivatives (default): compute numerical derivatives on the transformed phase
  • telsum (optional): compute telescoping sum from phase differences in each subaperture

The default behavior is derivatives. To enable telescoping sum, pass slope_method='telsum' when calling the low-level interaction-matrix APIs.

Requirements

  • Python ≥ 3.8
  • numpy, scipy, matplotlib
  • specula - AO simulation framework
  • cupy - GPU acceleration (optional, requires CUDA)

Contributing to SynIM

To contribute to SynIM, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>
  3. Make your changes and add tests for the new functionality.
  4. Commit your changes: git commit -m '<commit_message>'
  5. Push to the branch: git push
  6. Create the pull request.

We require tests for all new features to ensure the stability of the project.

Citation

If you use SynIM in your research, please cite:

@misc{agapito2026synim,
  title         = {SynIM: a high-performance GPU-accelerated Python library for
                   synthetic interaction and tomographic reconstruction matrices
                   in next-generation adaptive optics},
  author        = {Agapito, Guido and Rossi, Fabio and Puglisi, Alfio},
  year          = {2026},
  eprint        = {2606.07759},
  archivePrefix = {arXiv},
  primaryClass  = {astro-ph.IM},
  url           = {https://arxiv.org/abs/2606.07759}
}

License

MIT License - see LICENSE file for details.

Authors

  • Guido Agapito - INAF - Osservatorio Astrofisico di Arcetri

Acknowledgments

It was built as part of the MORFEO project.

Metadata

Release files for synim 2.1.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 synim 2.1.0
File Size Uploaded Provenance Actions
synim-2.1.0.tar.gz 1.2 MB With provenance Details for synim-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / synim-2.1.0.tar.gz

Download URL synim-2.1.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
15bddc4926dfe9b17ceb9446f4119eedd4693e3483940cbfdaa5ca92d57394a8
BLAKE2b-256 checksum
How to use checksums
b2cffbb954c972843adfb742094fb5f0884530ecf1bd5e784354c2550d6b4842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / synim-2.1.0-py3-none-any.whl

Download URL synim-2.1.0-py3-none-any.whl
Size 144.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f999a8f7dd8b966463cf2020d3489cc25fd0060e150ef793389ba31c89e03690
BLAKE2b-256 checksum
How to use checksums
446a4deb156c427181a1a379bf41179f6976030b012be11f8e18ee4758d00fad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for synim 2.1.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 synim-2.1.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 Nov 18, 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