Let there be a custom gate (simply called
gate that takes $N$ qubits as input. Also, let $A$ of those qubits be in
first_register and $B$ of those qubits be in
second_register ($B = N-A$, obviously).
Both registers are
How to append this custom gate to circuit, like what to write in