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
As you said, it is pretty much an easy fix. But since you found it, I would encourage you to contribute a PR with the proposed suggestion, and a corresponding test (which should ensure that the fix is working, but also that the problem will not appear again).
The if statement that checks the number of two-qubit gates in the circuit contains an error. The statement checks if there are three two-qubit gates.
The if statement on line 129 is located in the function call of the class Subgraph. https://github.com/qiboteam/qibo/blob/45886717471a919d09a832a953c1c05cb6174fa1/src/qibo/transpiler/placer.py#L129C1-L134C14
To Reproduce
Error:
[Qibo 0.2.14|ERROR|.....]: Circuit must contain at least two two-qubit gates to implement subgraph placement.
Expected behavior
The circuit contains at least two two-qubit gates, so the error shouldn't occur.
Sugested fix
I would suggest changing the number 3 to 2 in the if statement that checks the number of two-qubit gates in the circuit
The text was updated successfully, but these errors were encountered: