Astimator
The ASTIgmatic estiMATOR. Estimate complex mode coefficients from several intensity pictures of the same beam, each taken after a different transformation. PyTorch based.
images (K*H, W) ─┐
├─> Estimator ──> coefficients
basis (K, P, M) ─┘ (L-BFGS-B, torch autodiff, random restarts)
Inputs
- images: the K pictures of one sample v-stacked, shape
(K*H, W)(array or tensor). A 3D input(n_samples, K*H, W)fits every sample. Each picture is normalised to max 1 internally; background subtraction / flips / cropping are up to you, beforehand. - basis: tensor
(K, n_pix, n_modes)or a list of K tensors(n_pix, n_modes).basis[k]is the basis already transformed for picture k,n_pix = H*W(C-order ravel of an(H, W)picture).
est = Estimator(basis, EstimationConfig(device="auto", n_restarts=10))
result = est.estimate(images) # dict: results, coeffs (n_restarts, M), best (M,)
Helpers
make_hg_basis(N, (H, W), pixel_size, waist)— fast HG basis. Separable 1D recurrence + one batched product on the device; only modes with n+m<=N are built. ReturnsHGBasis(basis, ni, mi, N, shape).transform_hg_basis(hg, phis)— appliesexp(i(phi_x n + phi_y m))per picture →(K, n_pix, n_modes).phisis K pairs(phi_x, phi_y).transform_basis(my_basis, hg, phis)— same for a non-HG basis: project ontohg, apply the phases, recombine.hg's order must be high enough to representmy_basis.coeffs_to_matrix(coef, ni, mi, N)— flat coefficients →[n, m]matrix.
Files
pipeline.py Estimator · torch_engine.py device + loss/grad · hg_basis.py ·
lens_transform.py · config.py · examples/run_estimation.py
Metadata
Release files for Astimator 0.0.1
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 |
|---|---|---|---|---|
| astimator-0.0.1.tar.gz | 12.0 kB | Without provenance | Details for astimator-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astimator-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for astimator-0.0.1-py3-none-any.whl |
Total release size: 14.0 kB
Release files / astimator-0.0.1.tar.gz
| Download URL | astimator-0.0.1.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7900199c853e2b0e74759284f2e17ecbf37968c69d5636b6b2c9eaa0b8ca7c0f
|
|
BLAKE2b-256 checksum How to use checksums |
206a7f96a6d3a26f0fd11bf29c0c43d42de62b1f42253e9d1a6ea7a7bb009dfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / astimator-0.0.1-py3-none-any.whl
| Download URL | astimator-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d41b887a0110bfd2033f1fe95c622bf94a83c1dff28fcffd1905b20e5718f9a
|
|
BLAKE2b-256 checksum How to use checksums |
9e18ab95dd3db1fe49cf70c3b09ba2238d9100ed80c77a1d3984e8c3ff397178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for Astimator 0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.