4 Commits
Author SHA1 Message Date
Edoardo Vergerio bb2544954e added mpid support for three layer stacks. Added sorter_to_gauss as example usage of the three stack. 2026-10-04 15:33:04 +02:00
Edoardo Vergerio 31859271da several modification introduced: fixed dimensions to micrometers, introduced ego loop 2026-09-21 11:42:22 +02:00
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