qit.gate.plusdot

qit.gate.plusdot(n_in, n_out, d=2)

Plus dot.

The dual of copydot. Connecting computational basis states to all of its legs causes it to vanish unless the sum of the basis state labels is zero (mod d).

PLUSninnout=1d(m+n2)/2r1rnins1snoutδ(irijsj),0|s1snoutr1rnin|,
Parameters
  • n_in (int) – number of input legs

  • n_out (int) – number of ouput legs

  • d (int) – leg dimension

Returns

plus dot

Return type

Lmap

See [9]