# Photontorch
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.
- Floris Laporte [[[email protected]](mailto:[email protected])]
- Website: [photontorch.com](http://photontorch.com)
## Installation
### Stable version
Photontorch can be installed with pip:
```
pip install photontorch
```
### Development version
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:
```
pytest tests
```
## Documentation
Read the full documentation here: [https://docs.photontorch.com](https://docs.photontorch.com)
## Dependencies
### Required dependencies
- Python 2.7 (Linux only) or 3.6+. It's recommended to use the [Anaconda](http://www.anaconda.com/download) distribution.
- [`pytorch>=1.5.0`](http://pytorch.org): `conda install pytorch` (see [pytorch.org](https://pytorch.org) for more installation options for your CUDA version)
- [`numpy`](http://www.numpy.org): `conda install numpy`
- [`scipy`](http://www.scipy.org): `conda install scipy`
### Optional (but recommended) dependencies
- [`tqdm`](https://github.com/tqdm/tqdm): `conda install tqdm` [progress bars]
- [`networkx`](http://networkx.github.io): `conda install networkx` [network visualization]
- [`matplotlib`](http://matplotlib.org): `conda install matplotlib` [visualization]
- [`pytest`](http://docs.pytest.org): `conda install pytest` [to run tests]
- [`pandoc`](https://pandoc.org): `conda install pandoc` [to generate docs]
- [`sphinx`](https://www.sphinx-doc.org): `pip install sphinx nbsphinx` [to generate docs]
- [`torch-lfilter`](https://github.com/flaport/torch_lfilter): `pip install torch-lfilter` [faster lfilter for detectors]
## Reference
If you're using Photontorch in your work or feel in any way inspired by it,
we ask you 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.
## Known issues
- Complex tensor support. Complex tensors are not supported in
PyTorch/Photontorch. Wherever complex tensors would be applicable,
Photontorch expects a real-valued tensor with the real and imag part
stacked in the first dimension. The Photontorch issue can be
followed [here](https://github.com/flaport/photontorch/issues/4) and
the PyTorch issue [here](https://github.com/pytorch/pytorch/issues/755).
- Sparse tensor support. A lot of memory usage can probably be avoided
when transitioning to a sparse tensor representation for the connection matrices and
scatter matrices. The Photontorch issue can be followed [here](https://github.com/flaport/photontorch/issues/5)
## License
Photontorch used to be available under a custom Academic License, but Since October
2020, Photontorch is now fully open source and available under the [AGPLv3](LICENSE).
Copyright © 2020, Floris Laporte - UGent - [AGPLv3](LICENSE)
Python库 | photontorch-0.4.0.tar.gz
版权申诉
173 浏览量
2022-04-12
18:22:42
上传
评论
收藏 42KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- 206693250008_R01C02_Grn.idat
- 瞳孔跟踪-基于OpenCV+网络摄像头的瞳孔跟踪算法实现-附项目源码+流程教程-优质项目分享.zip
- ModStartCMS v8.4.0 框架稳定性持续迭代,修复部分已知问题
- bleder 教室学校学生教育室办公室考试
- 人脸检测-使用OpenCV实现的动漫+漫画人脸检测算法-附项目源码-优质项目实战.zip
- 道路贴图,材质材料免费
- 人脸检测-基于OpenCV+Node.js+WebSockets实现的实时人脸检测应用-附项目源码-优质项目实战.zip
- 一些常见的MySQL死锁案例-mysql-deadlocks-master(源代码+案例+图解说明)
- UE4动画烘焙器-ue4.27
- 新建文件夹.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈