I want create an ADD gate like this: enter image description here

in qiskit using elementary gates.

Can it be done?
How can I proceed?

  • $\begingroup$ Hello ! Did you check this example in the textbook? It could be good for a first start :) $\endgroup$ – Lena Feb 16 at 13:03
  • $\begingroup$ @Lena I also said the same thing regarding addition. Is there anything wrong with my answer? :( $\endgroup$ – user27286 Feb 16 at 14:47
  • $\begingroup$ @user27286 No you didn't, actually. What you described is an XOR operation, not an adder. That's why I put the link to know if he/she knew this. $\endgroup$ – Lena Feb 16 at 15:03
  • $\begingroup$ @Lena Oh. I thought adding |0> and |1> is just xor of these two and the carry part I didn't use. I will delete the answer...I misinterpreted completely and no point answering it now because you shared the link. $\endgroup$ – user27286 Feb 16 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.