Hi. I'm trying to make a circuit including some Toffoli gates in Qiskit.
The problem is that, because of connectivity between qubits, some gates should be modified to satisfy it.
I've read this post similar to this problem: How is it possible to perform a c-not on 4 qubits using the same control qubits on IBM Q computers?
This helped me a lot, but I'm still uncertain that these two circuits are equivalent &
SWAP gates applied to $q_1, q_2, q_3$ don't affect after all works are done.
Thanks a lot.