|View source on GitHub|
Implements action of multi-controlled Pauli X gate.
cirq.decompose_multi_controlled_x( controls: List['cirq.Qid'], target: 'cirq.Qid', free_qubits: List['cirq.Qid'] ) -> List['cirq.Operation']
Result is guaranteed to consist exclusively of 1-qubit, CNOT and CCNOT
free_qubits has at least 1 element, result has lengts
|controls - control qubits. targets - target qubits. free_qubits - qubits which are neither controlled nor target. Can be modified by algorithm, but will end up in their initial state.|