I would like to have a controlled NOT gate which flips my target qubit when at least one of the control qubits is |1>.
I would like to be able to do this for arbitrary n. For a system with 2 control qubits this can be achieved as follows:
But this gets harder as n gets larger.
So I have 2 questions:
[General question] How can I construct such a gate? Is there a simple custom gate I can make, or a sequence of gates?
[Cirq question] How would I implement this using Cirq?