mapomatic
mapomatic copied to clipboard
Better cost function iterations
Mapomatic currently iterates through a circuit over and over again for each layout. This is quite costly as it is performing a bunch of loops in Python.
Instead, I think it is possible (at least for the base cost routine) to convert the scoring into matrix-vector products where the circuit is traversed once. This would greatly speed up the evaluation process.
I am thinking this could be done for scheduled circuits as well (scheduling gives ~100-1000x overhead) provided that the delays were parameterized and filled in as needed for each layout.