1
$\begingroup$

I once experimented with the tool "quirk" and came to a gate, whose function I can not properly tap into. I'm working in the circuit with 4 bits, the last bit is negated, so from 0 to 1. On all 4 bits then I apply a Hadamard transformation. Then this special gate is used, whose function I can not explain.

the gate in the red box is the one that I mean

Hence my question. Can someone explain what makes the gate? How does this work? I know so far the CNOT gate and the Toffoli gate, but this one seems to be something else?

I hope the question is understandable.

$\endgroup$
3
$\begingroup$

This gate is closely related to the CNOT gate that you've already learnt about. Where the CNOT gate says "apply NOT to the target if the control is in the state $|1\rangle$", this gate says "apply NOT to the target if all 3 control qubits are in the state $|1\rangle$". The three control qubits are the closed black circles, and the target qubit is the other one.

If you want to know more about this gate, it's probably worth starting with the "Toffoli gate", which is the same but with two control qubits.

$\endgroup$
  • $\begingroup$ Thank you for your answer. Can you maybe do that a little further? So at the CNOT I noticed: the second bit is negated if the first bit is a one. Are there any sources that convert this gate into a Toffoli gate? So what interests me, how do you know that the gate works that way? Where can I read about it? $\endgroup$ – QuantaMag Mar 25 at 13:47
  • $\begingroup$ @QuantaMag This is just standard notation. I know it because I've working in the field for a long time. As for where you can read more, the text book by Nielsen & Chuang is the standard starting point. In my version, you'd be interested in Figures 4.7 and 4.9. $\endgroup$ – DaftWullie Mar 25 at 14:12
  • $\begingroup$ thanks for your help, I have found the appropriate text, which is helpful. $\endgroup$ – QuantaMag Mar 26 at 7:54

Your Answer

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

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