Skip to main content

tiptilt

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 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 tiptilt 0.3.0
File Size Uploaded Provenance Actions
tiptilt-0.3.0.tar.gz 122.3 kB With provenance Details for tiptilt-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 195.4 kB

Release files / tiptilt-0.3.0.tar.gz

Download URL tiptilt-0.3.0.tar.gz
Size 122.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c028f655fca77d1d5906f56d0ce1253f7f4b7d2e3c8938ed1822157ea628adc
BLAKE2b-256 checksum
How to use checksums
02981fdb99c9a47d2aa0829f5455dee9c0e380f56d7c2c70d750158ec161f6fd
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 5, 2026.

Transparency log

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

Download URL tiptilt-0.3.0-py3-none-any.whl
Size 73.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eaa0f5583b14efede7d901a051dbe328285fc4bcd21584a92d0b02efc01294d
BLAKE2b-256 checksum
How to use checksums
6c6a05f710309aff25ab7c47b17b184a62db819a0b63efab196d03a1599ac33c
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 5, 2026.

Transparency log

Security for tiptilt 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 tiptilt-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 Nov 5, 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