enter image description here enter image description here

I am fascinated by such a quantum structure as above, how should the regular distribution for Toffoli and SWAP gates be described by the formula? Is the following correct? $\prod\limits_{n}{{{I}_{{{2}^{i-1}}}}\otimes SWAP\otimes {{I}_{{{2}^{n-i}}}}}?$ $\prod\limits_{n}{{{I}_{{{2}^{i-1}}}}\otimes Toffoli\otimes {{I}_{{{2}^{n-i}}}}}?$

  • $\begingroup$ Is there a better way? $\endgroup$
    – R-X Zhao
    Oct 9, 2022 at 5:53


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.