qit.gate.two

qit.gate.two(B, t, d_in)

Two-qudit operator.

Parameters
  • B (Lmap, array) – two-subsystem operator

  • t (tuple[int]) – two subsystems to which B is applied

  • d_in (tuple[int]) – input dimensions for the constructed operator

Returns

B applied to subsystems t (and identity applied to the remaining subsystems)

Return type

Lmap