Skip to main content

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


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)

Uploaded Source

Built Distribution

torchoptics-0.0.0a1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page