Skip to content

adds adjoint to metalens notebook #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tylerflex
Copy link
Collaborator

This adds a new section to the visible light metalens where we use local field projection and adjoint to fine tune the power directed to the focal spot.

We get a 17% improvement over 15 iterations.

NOTES:

  • uses yaugenst-flex/polyslab-grads frontend branch, which has not been merged. without the code from this branch, the results will be terrible because the gradients are inaccurate.
  • uses local gradient calculation to make use of the changes in this branch. Ideally we would switch to remote gradient.
  • The gradient processing takes >5 minutes each iteration.. so I limited the code to only run one iteration. I left the cell output to correspond to the full 15 iterations that I ran locally, along with a small note.

Not sure when is the best time to merge this, maybe after Yannick's PR is merged and it is fast enough to justify running this?

@tylerflex tylerflex force-pushed the tyler/autograd_/metalens_angle branch 2 times, most recently from 522b962 to 443eefb Compare June 11, 2025 19:15
@tylerflex tylerflex force-pushed the tyler/autograd_/metalens_angle branch from 443eefb to 7eaf2a3 Compare June 11, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant