Quickstart
This page gives a compact, self-contained path from installation to a first CGH run.
Note
The examples below are intentionally small. Their job is to show how the repository is layered, not to present the final word on hologram quality or benchmarking.
1. Import the Main Layers
At a high level:
padocontains the differentiable optics corepado_hologramcontains holography-oriented abstractions and workflows
2. Run a Built-In Experiment
The easiest entry point today is the package CLI:
This exercises:
- source specification
- propagation configuration
- target creation
- a compact phase optimization loop
You can also run the current DPAC path:
The primitive-based exact path is also available:
If you have installed the optional Warp dependency, you can request the Warp-backed path explicitly for either DPAC or the exact primitive renderer:
pado-hologram run experiment=dpac target=gaussian backend=warp
pado-hologram run experiment=primitive_gaussian_gws_exact primitives=gaussian3d_depth_ring backend=warp
The Hydra-native compatibility path still exists when you want the lower-level Hydra entrypoint directly:
3. Use the Core API Directly
from pado_hologram import SourceSpec, PropagationSpec, HologramPipeline
source = SourceSpec(dim=(1, 1, 128, 128), pitch=8e-6, wvl=532e-9)
propagation = PropagationSpec(distance=0.2, mode="ASM")
pipeline = HologramPipeline(source, propagation)
light = pipeline.make_source_light()
result = pipeline.forward_source(light)
This is the simplest way to see the current layering:
SourceSpecdescribes the source/SLM planePropagationSpecdescribes the observation-plane propagationHologramPipelinecomposes the end-to-end forward pass
4. Use Device-Aware Phase Encoding
The first LCOS/SLM-oriented helper remains available through pado.display as a
compatibility bridge:
This layer is important because it bridges ideal phase optimization to realized
display-domain behavior such as quantization and LUT-based phase response while
the higher-level workflow surface moves toward pado_hologram.devices and
pado_hologram.slm.
5. Next Steps
- Read Repository Layout
- Read Architecture Overview
- Read Experiments and Hydra
- Read Phase-Only CGH Workflow