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:
- 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.AbstractSpeckleFieldcontract, built on the(E_nom, G)linearizationphysicaloptixprovides, so the image and yield layers consume it unchanged. - 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. Sensing, controller design and closed-loop execution require float64. Enable JAX x64 before building the optical model. Passing a float32 control model raiseshwoutils.precision.PrecisionErrorwith instructions for converting it.
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 (autocorrelationexp(-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. For spectral synthesis, grids with distinct lines that collapse in float32 require float64. Pass concrete host times to replay fields when absolute elapsed seconds would lose the sample spacing in float32. - hwo_sim reader (
hwo_sim):load_hwo_simreads an hwo_sim linear E-field directory (nominal field and sensitivity matrix on the dark-zone pixel list), andHwoSimSpeckleFieldevaluates 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 commonAbstractEstimatorseam. - Pointing (
lowfs):lowfs_calibratebuilds the response matrix of a defocused low-order sensor on a forked pickoff arm, andrun_pointing_loopcloses an integrator on the reconstructed coefficients to hold the beam against line-of-sight jitter (thepointing_jittertestbed scenario). - Control (
control): electric-field conjugation, stroke minimization, and a predictive law behind a commonAbstractControllerseam, withclose_dark_holeas 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, andrun/sweepdrivers. Custom laws plug in by implementing one method; seeexamples/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 likephysicaloptix).examples/-- worked examples (bring-your-own control algorithm).
Metadata
Release files for tiptilt 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tiptilt-2.0.0.tar.gz | 148.3 kB | With provenance | Details for tiptilt-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tiptilt-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for tiptilt-2.0.0-py3-none-any.whl |
Total release size: 227.5 kB
Release files / tiptilt-2.0.0.tar.gz
| Download URL | tiptilt-2.0.0.tar.gz |
|---|---|
| Size | 148.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1785bcd2ea7587a122e568476ad11187168b4456d28322deb65fc807f1f1e3c
|
|
BLAKE2b-256 checksum How to use checksums |
c8a19d1316eb38cba52cfb2462bbe11453299ab5f87c338ee8f55d4d2fc1ace4
|
| 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 28, 2026.
Transparency logRelease files / tiptilt-2.0.0-py3-none-any.whl
| Download URL | tiptilt-2.0.0-py3-none-any.whl |
|---|---|
| Size | 79.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ee9a030d598d5ded4743310b05517f2a4a1d73ce760a6658ed2cd31e3e0be44
|
|
BLAKE2b-256 checksum How to use checksums |
82290c5f7a4fa59350d59b4d5987b0b5a225f78aad7949bd224e685a3669320f
|
| 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 28, 2026.
Transparency logSecurity for tiptilt 2.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.
Attestation for tiptilt-2.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 28, 2026.
Transparency logA 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.