qit.gate.copydot

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

Copy dot.

A copy dot is a tensor that copies any computational basis state, in the sense that connecting :math`ket{k}` to any of its legs breaks it up into nin+nout1 unconnected copies of :math`ket{k}` and :math`bra{k}`.

COPYninnout=k=0d1|kknoutkknin|.
Parameters
  • n_in (int) – number of input legs

  • n_out (int) – number of ouput legs

  • d (int) – leg dimension

Returns

copy dot

Return type

Lmap

See [9]