guppyalgos.primitives.gate_decompositions.cnx.cnx_teleportation

Multicontrolled x gate based on teleportation.

Functions

cnx_teleportation(control, target)

Apply cnx using the teleportation protocol.

guppyalgos.primitives.gate_decompositions.cnx.cnx_teleportation.cnx_teleportation(control, target)

Apply cnx using the teleportation protocol.

Based on https://arxiv.org/abs/2604.25861, requires O(n) ancillary qubits and a linear Toffoli count with a constant depth.

Parameters:
  • control (array[qubit, n_controls]) – register of control qubits.

  • target (qubit) – target qubit.