Fixed bug preventing swaps in simulated annealing algorithm#25
Fixed bug preventing swaps in simulated annealing algorithm#25jaipadmakumar wants to merge 1 commit intoCIDARLAB:masterfrom
Conversation
…rming 'swaps' within a circuit.
|
Could you elaborate the steps to re-create the bug, so that we could test it and accept the pull request? Thanks |
|
Yea, sorry. I should've been clearer. I think the easiest way to see this is just to add a print statement or just some basic counter (to see the number of times you hit that if block) right under line 144. You'll see that the I think an alternate way if you want a good test case is to use a 2-gate circuit and a 2-gate library. If you do that, you'll see that the circuit never changes b/c the algorithm never performs a swap. The basic problem is that for a given |
There was a bug in the simulated annealing that prevented the algorithm from performing 'swaps' between gates in a circuit (only 'substitutions' were ever performed).