Skip to main content

tiptilt

PyPI Documentation Status Tests License Python 3.12+

Differentiable wavefront-error generation and wavefront control for the HWO direct imaging simulation suite.

Named for tip and tilt, the humblest wavefront correction.

What it is

tiptilt owns the two halves of the wavefront program that the propagation engine (physicaloptix) deliberately leaves out:

  1. Aberration generation. A physically meaningful mode basis (segment piston/tip/tilt, deformable-mirror influence functions, Zernikes) plus per-mode temporal statistics produce a drifting wavefront-error realization. It is delivered as a time-varying speckle residual implementing the optixstuff.AbstractSpeckleField contract, built on the (E_nom, G) linearization physicaloptix provides, so the image and yield layers consume it unchanged.
  2. Wavefront control. Wavefront-sensor estimators, a reconstructor over the same (E_nom, G) product (electric-field conjugation in space, a modal loop on the ground), and a differentiable control loop that commands the deformable mirror.

Space wavefront control is the priority; atmospheric turbulence shares the loop, the mode basis, and the residual interface.

What is here

  • Aberration sources (speckle, turbulence): a stationary spectrally-factorized drift field, a tabulated replay field, correlated multi-channel realizations, and von Karman / frozen-flow screens. Trajectory builders fill the replay field: an exact per-mode Ornstein-Uhlenbeck process (autocorrelation exp(-lag/tau) at every lag and every step size, which the spectral synthesis only approximates over a few decorrelation times), plus the non-stationary regimes it cannot express at all -- a random walk whose variance grows in time, and one-sided creep with a skewed marginal.
  • hwo_sim reader (hwo_sim): load_hwo_sim reads an hwo_sim linear E-field directory (nominal field and sensitivity matrix on the dark-zone pixel list), and HwoSimSpeckleField evaluates it as a speckle field with a sinusoid or tabulated drift.
  • Sensing (sensing): pairwise probe estimation, Zernike wavefront sensor calibration and reconstruction, and Kalman field estimators behind a common AbstractEstimator seam.
  • Control (control): electric-field conjugation, stroke minimization, and a predictive law behind a common AbstractController seam, with close_dark_hole as the driver.
  • Operations (maintenance, multichannel): dark-hole maintenance under injected drift with honest model/truth separation, and cross-channel feed-forward on a shared deformable mirror.
  • Hardware (dm): a programmable actuator-grid deformable mirror (Gaussian influence functions, per-actuator stroke limits) whose command vector is actuator-space, the language published control algorithms speak.
  • Benchmarking (testbed): an algorithm registry, scenario builders (dig from cold, hold against drift, NCPA-limited, dual-channel), metrics, and run/sweep drivers. Custom laws plug in by implementing one method; see examples/custom_controller.py.

The mode-basis constructors it builds on (zernike_basis, segment_ptt_basis, fourier_dm_basis) live in physicaloptix.

Quick start

Generate a deterministic two-mode creep trajectory without an optical path or external data. Rates are in nm/s; rows contain mode coefficients in nm at each sample time.

import jax.numpy as jnp

from tiptilt import creep_trajectory

times_s = jnp.array([0.0, 10.0, 20.0])
coefficients_nm = creep_trajectory(jnp.array([0.02, -0.005]), times_s=times_s)
print(coefficients_nm)

Layout

  • src/tiptilt/ -- the package.
  • tests/ -- the test suite (pytest, CPU/x64-pinned like physicaloptix).
  • examples/ -- worked examples (bring-your-own control algorithm).

Metadata

Release files for tiptilt 1.0.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 tiptilt 1.0.0
File Size Uploaded Provenance Actions
tiptilt-1.0.0.tar.gz 123.0 kB With provenance Details for tiptilt-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 196.4 kB

Release files / tiptilt-1.0.0.tar.gz

Download URL tiptilt-1.0.0.tar.gz
Size 123.0 kB
Tags Source
SHA-256 checksum
How to use checksums
330f7c882fab5873a47cad71b875df7f569c32b7fa5bc02a9b3f03dc0cc65c0a
BLAKE2b-256 checksum
How to use checksums
05e69c8b4bbd9f2562b15dd3ab1f73c274b7d97a660617c9156ec1a4a7b6d54f
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 16, 2026.

Transparency log

Release files / tiptilt-1.0.0-py3-none-any.whl

Download URL tiptilt-1.0.0-py3-none-any.whl
Size 73.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
359943856e366e9046bebdacb3f80ca562942acb2c43a454cfdd88737f62bd67
BLAKE2b-256 checksum
How to use checksums
6664d3738edf5b00a0a07b0bcdf31cbddb706743b08a29fc533ea16bcb57cb5f
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 16, 2026.

Transparency log

Security for tiptilt 1.0.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 tiptilt-1.0.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 16, 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