Differentiable diffractive optics simulator using PyTorch
Project description
TorchOptics
Differentiable diffractive optics simulator using PyTorch.
Usage
Field propagation example:
import torch
from torchoptics.propagation import propagator
input_field = torch.ones(100, 100)
succeeding_shape = 200
propagation_distance = .3
wavelength = 780e-9
grid_size = 10e-6
output_field = propagator(input_field, succeeding_shape, propagation_distance, wavelength, grid_size)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
torchoptics-0.0.0a1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for torchoptics-0.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 803336d8441107f8fd6e2596c63c1fd45109feb2761cc9f910a2541411f6edc6 |
|
MD5 | 32cb043977ed6fedb5bac72e3af63fff |
|
BLAKE2b-256 | d5733953fb34c86358d14257c85d0a3375cb45ba299642c11924612cdae16175 |