I am trying to create the following circuit in IBM Quantum Composer but I cannot add the last H gate correctly. It falls in the wrong place. Why? enter image description here


1 Answer 1


They are equivalent in the sense that they implement the same unitary.

But if you want to keep the alignment you can insert a barrier: enter image description here

Note however that if you plan to run your circuits on actual quantum computer, in general barriers may affect the process of transpilation and execution. See here for details.


In the new version of IBM Quantum Composer (now in beta) you can use freeform alignment to place gates anywhere in the composer:

enter image description here


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.