qit.invariant.gate_adjoint_rep

qit.invariant.gate_adjoint_rep(U: np.array[complex], dim: Sequence[int], only_local: bool = True) np.array[float]

Adjoint representation of a unitary gate in the hermitian tensor basis.

Parameters
  • U (np.array[complex]) – unitary gate

  • dim (Sequence[int]) – dimension vector defining the basis

  • only_local (bool) – if True, only return the local part of the matrix

Returns

adjoint representation of U

Return type

np.array[float]

See [11].