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
If we allocate and free inside the for loop, we get
and get the inflated qubit count.
The ideal solution in this case is to use subroutines to structure your code
but we can also recover the desired behavior most of the time using our specialized topological sort greedy_topological_sort which postpones allocations.
Output:
Ideally, there should be a way to get 11 qubits in both the cases above.
The text was updated successfully, but these errors were encountered: