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.0.1

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.0.1
File Size Uploaded Provenance Actions
synim-2.0.1.tar.gz 1.1 MB With provenance Details for synim-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.2 MB

Release files / synim-2.0.1.tar.gz

Download URL synim-2.0.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
818c3d8eacd50a28aaf5ea52431f433d15fae484a8aada06ebe56bc89451fd1d
BLAKE2b-256 checksum
How to use checksums
29bf428ea2629684ff63000a49e8c222c80ffb63d0aff57e6a2c6c512affd2ef
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 Oct 29, 2026.

Transparency log

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

Download URL synim-2.0.1-py3-none-any.whl
Size 114.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02c9755b13f78d03658813acb4be70aab60da457cffb91a4f8401c164cbc5a87
BLAKE2b-256 checksum
How to use checksums
11a0a4c627ac2aebb55755de67db290cbc2e37cce615274bfb3fbfd5fb1abd92
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 Oct 29, 2026.

Transparency log

Security for synim 2.0.1

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.0.1.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 29, 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