From Classical Lens Design to Quantum Photonics via Differentiable Computing
The trajectory of the Eikonal formalism. The upper stream represents the evolution of classical optics from Hamilton (1828) to the 'Inflection Point' (2010). The lower stream represents the computational evolution. The 'Eikonal Bridge' connects these, utilizing the Bridge Identity to map classical characteristic functions into quantum operators.
This repository contains the companion materials for The Eikonal Bridge, a comprehensive technical book that unifies classical optical design with quantum photonics through the power of differentiable computing.
The Central Innovation: The Differentiable Eikonal Engine (DEE) framework uses JAX automatic differentiation to bridge two traditionally separate worldsโclassical lens design and quantum photonicsโthrough a single elegant identity:
ฯ_quantum = 2ฯ ร W_eikonal / ฮป
This bridge identity reveals that the classical eikonal function (optical path length) and quantum optical phase are the same mathematical object, enabling unified computational tools for both domains.
- ๐ 12 Chapters in 4 Parts - Foundations โ Computational Optics โ Quantum Extensions โ Production Practice
- ๐ฌ W/MN Duality Framework - Every topic from both forward analysis (Walther) and inverse design (Matsui-Nariai) perspectives
- ๐จ Production-Ready JAX Code - Complete, tested implementations with 100-1000ร speedup
โ ๏ธ Three-Axis Failure Framework - Systematic diagnostics for scalar eikonal limitations (P1-P5, M1-M5, T1-T3)- ๐ Specification Translation Tables - Quantitative classicalโquantum tolerance tightening factors (10-100ร)
- ๐ 80+ Paired Problems - W-type (analysis), MN-type (design), and Q-type (quantum) problem sets
- Optical Engineers transitioning from CODE V/Zemax to quantum photonics applications
- Quantum Physicists seeking practical lens design foundations for photonic systems
- Graduate Students in optics, photonics, and quantum information science
- Researchers exploring differentiable programming for optical design
Every chapter presents optical problems from dual perspectives:
| Perspective | Question | Approach |
|---|---|---|
| Walther (Forward) ๐ต | "Given this device, what does it do?" | Analysis, simulation, characterization |
| Matsui-Nariai (Inverse) ๐ด | "Given this target, how do I build it?" | Design, optimization, synthesis |
This duality provides a universal problem-solving methodology that applies across classical and quantum domains.
When does the scalar eikonal approximation break down? Our systematic diagnostic framework identifies failure modes across three axes:
| Axis | Codes | Failure Modes |
|---|---|---|
| Physical | P1-P5 | High NA, polarization, dispersion, nonlinearity, thermal |
| Mathematical | M1-M5 | Singularities, discontinuities, non-differentiable, ill-conditioned, numerical precision |
| Topological | T1-T3 | OAM, Berry phase, topological charge |
| Ch | Title | Key Topics |
|---|---|---|
| 1 | Eikonal as Universal Language | Eikonal equation, bridge identity, singlet lens example |
| 2 | Hamilton's Characteristic Functions | V, T, W, W' functions; Seidel aberrations |
| 3 | Wavefront Aberrations | Zernike polynomials, PSF/MTF, Double Gauss example |
| 4 | Beyond Scalar Eikonal | Three-axis failure framework (P/M/T), Level 1โ5 hierarchy |
| Ch | Title | Key Topics |
|---|---|---|
| 5 | Photonic Integration | Dimensional hierarchy, eigenmode-eikonal, CPO couplers |
| 6 | Quantum-Inspired Optimization | QUBO formulation, quantum annealing algorithms |
| 7 | Differentiable Eikonal Engine | DEE architecture, JAX implementation, benchmarks |
| 8 | Walther-(Matsui-Nariai) Duality | W/MN unified workflow, central methodology chapter |
| Ch | Title | Key Topics |
|---|---|---|
| 9 | Quantum Wavefront Sensing | Squeezed light sensing, MPLC mode sorter |
| 10 | Quantum Walks in Waveguide Arrays | Quantum walks, HOM effect, QRNG design |
| 11 | N-Photon Phase Multiplication | N-photon enhancement, NOON states, Heisenberg limit |
| Ch | Title | Key Topics |
|---|---|---|
| 12 | Production Workflows | AR/VR combiner, CPO coupler, metalens, QKD source |
| categories | Title | Key Topics | version |
|---|---|---|---|
| B1 | Brief guide to eikonal bridge | 6 analytical derivations and 11 problem cases | v19 |
| S_A | Showcase_Eiknoal Bridge_Case A | teaching optimized showcase A for eikonal bridge | v9 |
| S_B | Showcase_Eiknoal Bridge_Case B | research optimized showcase B for eikonal bridge | v12 |
| S_C | Showcase_Eiknoal Bridge_Case C | Engineering optimized showcase C for eikonal bridge | v6 |
the-eikonal-bridge/
โโโ assets/
โ โโโ images/ # README and documentation images
โ โโโ eikonal_evolution_bridge.png
โโโ manuscript/ # LaTeX source files
โ โโโ chapters/ # Individual chapter .tex files
โ โโโ appendices/ # Appendix .tex files
โ โโโ figures/ # Publication figures
โ โโโ main.tex # Master document
โโโ code/ # Python/JAX implementations
โ โโโ dee_core/ # DEE framework core modules
โ โโโ examples/ # Worked examples from each chapter
โ โโโ problems/ # Problem solution code
โ โโโ figures/ # Figure generation scripts
โโโ solutions/ # Complete problem solutions manual
โโโ notebooks/ # Jupyter notebooks for exploration
โโโ data/ # Sample datasets and results
โโโ docs/ # Additional documentation
- Clone or download the repository
- Navigate to
notebooks/for interactive exploration - No heavy installation required for basic exploration!
# Clone the repository
git clone https://github.com/[username]/the-eikonal-bridge.git
cd the-eikonal-bridge
# Create virtual environment
python -m venv dee_env
source dee_env/bin/activate # On Windows: dee_env\Scripts\activate
# Install dependencies
pip install -r requirements.txtnumpy>=1.21.0
matplotlib>=3.5.0
jax>=0.4.0
jaxlib>=0.4.0
scipy>=1.7.0
pyyaml>=6.0
import jax.numpy as jnp
from jax import grad
def eikonal_to_quantum_phase(W_eikonal, wavelength):
"""
Bridge identity: phi_quantum = 2*pi * W_eikonal / lambda
"""
return 2 * jnp.pi * W_eikonal / wavelength
# The gradient is automatically available
d_phase_dW = grad(eikonal_to_quantum_phase)
# Example: 1 wave of OPD at 1.55 um
W = 1.55e-6 # meters
wl = 1.55e-6 # meters
phase = eikonal_to_quantum_phase(W, wl)
print(f"Quantum phase: {phase:.4f} rad = {phase/(2*jnp.pi):.4f} waves")A key feature of this book is quantitative guidance on tolerance tightening when transitioning from classical to quantum applications:
| Parameter | Classical Spec | Quantum Spec | Tightening Factor |
|---|---|---|---|
| Wavefront Error | ฮป/14 RMS | ฮป/63 RMS | ~4.5ร |
| Surface Figure | ฮป/20 P-V | ฮป/100 P-V | 5ร |
| Temperature Stability | ยฑ2 K | ยฑ0.1 K | 20ร |
| Alignment (angular) | 10 ฮผrad | 0.1 ฮผrad | 100ร |
| Vibration Isolation | 10 nm RMS | 0.1 nm RMS | 100ร |
| Operation | Finite Difference | JAX Autodiff | Speedup |
|---|---|---|---|
| Gradient (N=100) | 2.1 s | 0.003 s | 700ร |
| Hessian (N=100) | 210 s | 0.15 s | 1400ร |
| Optimization (1000 iter) | 35 min | 45 s | 47ร |
The key equation connecting waveguide coupling to quantum state evolution:
ฮฒ_k = (dW_k/dz) ร (2ฯ/ฮป)
This identity enables unified design of classical CPO couplers and quantum photonic gates.
This work bridges decades of optical engineering wisdom with modern computational methods. Special thanks to:
- The optical design community for foundational knowledge
- The JAX development team for enabling differentiable computing
If you use this work in your research, please cite:
@book{lin2026eikonal,
title = {The Eikonal Bridge: From Classical Lens Design to
Quantum Photonics via Differentiable Computing},
author = {Lin, Jyh-Long},
year = {2025},
publisher = {Open-source},
series = {},
isbn = {}
}Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
- ๐ Bug Reports: Open an issue with a minimal reproducible example
- ๐ก Feature Requests: Describe the use case and proposed solution
- ๐ง Code Contributions: Fork, create a feature branch, submit a PR
- Book Content: CC BY-NC-SA 4.0
- Code: MIT License
Current Version: 1.0 (Publication Preparation)
Last Updated: January 2026
Active Development: Yes
"The eikonal function is not just a mathematical convenienceโit is the Rosetta Stone connecting classical ray optics to quantum wave mechanics."
