Open
Description
Decomposition of controlled gates not only loses the control information after .decompose()
, but also acts on wrong qubits.
In [7]: from qibo import Circuit, gates
...:
...: circuit = Circuit(3)
...: circuit.add(gates.U3(0, 0.1, 0.2, 0.3).controlled_by(1, 2).decompose())
...: circuit.draw()
0: ────────────────
1: ─RZ─SX─RZ─SX─RZ─
2: ────────────────