guppyalgos.primitives.gate_decompositions.cnx.cnz

Multicontrolled z gate.

Functions

cnz(controls, target, cnx_box)

Apply cnz by conjugating the provided cnx_box.

guppyalgos.primitives.gate_decompositions.cnx.cnz.cnz(controls, target, cnx_box)

Apply cnz by conjugating the provided cnx_box.

Parameters:
  • controls – The array of control qubits.

  • target – The target qubit.

  • cnx_box – The cnx box to use for the decomposition.