Commit Graph
5 Commits
Author SHA1 Message Date
Edoardo Vergerio 5f88780426 modified mpid to use filtering on the phase mask parameters. Automatic differentiation is used to correctly compute gradients. Moreover, the optimization can down be carried out according to different strategies, which can either be: average the objectives, use an epigraph reformulation. The epigraph formulation needs further attention because it does not always leed to good results. A possible solution might be a combination of the two strategies: at the beginning use an average cost function to set up the problem and then switch to an epigraph. This would be like an hot start strategy, since I have noticed the epigraph being not totally capable of handling the problem well if it starts from scratch. On the other hand, the use of the filtering action can even leed to better results than without it, although it is necessary to tune the filter radius. I have seen that even a 1um radius is generally sufficient to remove outliers in the final phase mask, which was the main reason we decided to implement the filter in the first place. In the end, the all defined classes assume we interface to them using dimensions in micrometers. Conversion to meters is handled internally. 2026-09-11 14:45:35 +02:00
Edoardo Vergerio 45492233d4 implemented and did some testing about applying a conic filter on phase masks. This should smooth out outliers at the cost of a possible reduction of total overlap efficiency. Several example devices have been added for testing purposes. 2026-09-08 16:56:56 +02:00
Edoardo Vergerio b4e79330b1 implemented conic filtering on phase masks. The purpose of filtering is to remove large spatial variations of phase within the metasurface. On the other hand, the disadvantage of filtering is that high spatial variations might be required to achieve the desired target. A compromise needs to be reached: choose a small enough radius to avoid spurious phase values but that can still yield good overlap values. 2026-09-07 17:10:10 +02:00
Edoardo Vergerio 1d843d2553 stable definition of mpid.py. Commit version before testing conic filtering and autograd ad 2026-09-07 13:38:42 +02:00
Edoardo Vergerio b0bfef5d27 first commit 2026-09-03 16:59:35 +02:00