PADO
Pytorch Automatic Differentiable Optics
📚 Documentation• 🚀 Quickstart • ✨ Features • ⚙️ Installation • 📄 License
📋 Overview
🌊PADO (파도) is a cutting-edge framework for differentiable optical simulations powered by PyTorch. Inspired by the Korean word for "wave," PADO enables seamless and fully differentiable simulation workflows, perfect for researchers and developers in optical physics, computational imaging, and beyond.
✨ Features
- 🔥 Fully Differentiable: Integrates effortlessly with PyTorch Autograd.
- 🏎️ CUDA Acceleration: Leverages GPU hardware for ultra-fast simulations.
- 🧩 Modular Components: Easily customizable optical elements and simulation environments.
- 📊 Visualization Tools: Rich visualization with Matplotlib.
- ⚡ Easy-to-use API: Beginner-friendly API for rapid experimentation.
⚙️ Installation
You can install PADO via pip:
pip install pado-optics
Or via conda:
conda install -c conda-forge pado-optics
Or install directly from GitHub:
pip install git+https://github.com/shwbaek/pado.git
For development installation:
git clone https://github.com/shwbaek/pado.git
cd pado
pip install -e .
📚 Documentation
Comprehensive documentation is available at https://shwbaek.github.io/pado.
🚀 Quickstart
PADO includes a comprehensive set of example notebooks organized by topic:
Exploring Examples
Browse our examples by category:
-
- 1.1 Pado fundamentals - Learn about core components and building blocks
- 1.2 RGB multi-wavelength - Working with multiple wavelengths
- 1.3 4-F with batch - Batch processing in 4-F systems
- 1.4 How to use ASM options - Angular Spectrum Method configuration
-
2. Computer Generated Holography
- 2.1 DPAC - Double Phase Amplitude Coding
- 2.2 Multi-depth CGH - Multi-plane holography
- 2.3 CGH optimization - GS, SGD, and Adam methods
- 2.4 Multi-depth hologram with Adam - Complex loss-based optimization
- 2.5 Phase-only SLM optimization - Optimization with phase-only spatial light modulators
- 2.6 Multi-depth hologram with phase-only SLM - Multi-plane optimization with phase-only SLMs
-
- 3.1 Lens comparison - Different lens models and wavefront observation
- 3.2 Coded aperture comparison - Coded aperture techniques
- 3.3 Seeing through DOE - Imaging through diffractive optical elements
-
- 4.1 Polarization light - Polarized light simulation
-
- 5.1 Chromatic aberration singlet - Chromatic aberration simulation
ℹ️ About
Developed and maintained by the POSTECH Computer Graphics Lab.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
📝 Citation
If you use Pado in your research, please cite Pado using the following BibText template:
@misc{Pado,
Author = {Seung-Hwan Baek, Dong-Ha Shin, Yujin Jeon, Seung-Woo Yoon, Eunsue Choi, Gawoon Ban, Hyunmo Kang},
Year = {2025},
Note = {https://github.com/shwbaek/pado},
Title = {Pado: Pytorch Automatic Differentiable Optics}
}
Metadata
Release files for pado-optics 1.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 |
|---|---|---|---|---|
| pado_optics-1.0.1.tar.gz | 42.2 kB | Without provenance | Details for pado_optics-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pado_optics-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pado_optics-1.0.1-py3-none-any.whl |
Total release size: 87.1 kB
Release files / pado_optics-1.0.1.tar.gz
| Download URL | pado_optics-1.0.1.tar.gz |
|---|---|
| Size | 42.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f36311130208b2a22c93286c4462f70e02b1768432d75b489f99c3ebd9f5732
|
|
BLAKE2b-256 checksum How to use checksums |
6d273a66a4beedc5d405e56a7b0e54e2d3eabfaded971fc06d318526c1a49658
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / pado_optics-1.0.1-py3-none-any.whl
| Download URL | pado_optics-1.0.1-py3-none-any.whl |
|---|---|
| Size | 44.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63513535e68a43bdb646d6fc011c8b5fd953d9fe4520c7d427c30fea387d6adc
|
|
BLAKE2b-256 checksum How to use checksums |
6becbf65c1b122f23fd709b5130f39102401beac24dd673d23fba6a3d16c4f5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Security for pado-optics 1.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.