Photontorch is a photonic simulator for highly parallel simulation and optimization of photonic circuits in time and frequency domain. Photontorch features CUDA enabled simulation and optimization of photonic circuits. It leverages the deep learning framework PyTorch to view the photonic circuit as essentially a recurrent neural network. This enables the use of native PyTorch optimizers to optimize the (physical) parameters of the circuit.
Photontorch can be installed with pip:
pip install photontorch
During development or to use the most recent Photontorch version, clone the repository and link with pip:
git clone https://git.photontorch.com/photontorch.git ./install-git-hooks.sh # Unix [Linux/Mac/BSD/...] install-git-hooks.bat # Windows pip install -e photontorch
During development, use pytest to run the tests from within the root of the git-repository:
conda install tqdm[progress bars]
conda install matplotlib[network visualization]
conda install networkx[visualization]
conda install pytest[to run tests]
conda install pandoc[to generate docs]
pip install sphinx nbsphinx[to generate docs]
Table of contents¶
- A Brief Introduction to Photontorch
- Simulating an All-Pass Filter
- Simulating an Add-Drop Filter
- Circuit optimization by backpropagation with PyTorch
- Design of a Coupled Resonator Optical Waveguide band-pass filter with Photontorch
- Optimize an optical readout based on ring resonators
- Unitary Matrix Networks in the Frequency domain
- Unitary Matrix Networks in the Time Domain
- General Ring Networks
- Optimize an MZI in the time domain to perform the XOR on two subsequent bits
If you’re using Photontorch in your work or feel in any way inspired by it, please be so kind to cite us in your work.
Floris Laporte, Joni Dambre, and Peter Bienstman. “Highly parallel simulation and optimization of photonic circuits in time and frequency domain based on the deep-learning framework PyTorch.” Scientific reports 9.1 (2019): 5918.
Photontorch is available under an Academic License. This means that there are no restrictions on the usage in a purely non-commercial or academic context. For commercial applications you can always contact the authors.
Copyright © 2020, Floris Laporte - Universiteit Gent - Ghent University - Academic License.