Skip to content
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

Better cost function iterations #41

Open
nonhermitian opened this issue Aug 24, 2022 · 0 comments
Open

Better cost function iterations #41

nonhermitian opened this issue Aug 24, 2022 · 0 comments

Comments

@nonhermitian
Copy link
Collaborator

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.

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

No branches or pull requests

1 participant