You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And removing this is tricky because the whole composer is built around editing the last slice in place.
Proposed Solution
Translate and refactor the slice composition in C++. The composer has had a refactoring overdue for some time now.
Using better engineering, leveraging stringer types and const-correctness it should be possible to manage copying better, with flatter data-structures and by avoiding unnecessary copies. It will also be easier to parallelize, which in python has to go through the multiprocessing module
The text was updated successfully, but these errors were encountered:
Issue Description
From profiling (#228) it emerged that composing the slices is the slowest part of the compilation, even when simulation is disabled:
The incriminated copy is this one:
lattice-surgery-compiler/src/lsqecc/patches/lattice_surgery_computation_composer.py
Lines 306 to 308 in 61c5a94
And removing this is tricky because the whole composer is built around editing the last slice in place.
Proposed Solution
Translate and refactor the slice composition in C++. The composer has had a refactoring overdue for some time now.
Using better engineering, leveraging stringer types and const-correctness it should be possible to manage copying better, with flatter data-structures and by avoiding unnecessary copies. It will also be easier to parallelize, which in python has to go through the multiprocessing module
The text was updated successfully, but these errors were encountered: