mapomatic icon indicating copy to clipboard operation
mapomatic copied to clipboard

Better cost function iterations

Open nonhermitian opened this issue 1 year ago • 0 comments

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.

nonhermitian avatar Aug 24 '22 10:08 nonhermitian