unitaria.Identity

class unitaria.Identity(subspace: Subspace | None = None, *, dim: int | None = None)[source]

Bases: Node

Node representing the identity matrix on a given vectorspace

Should specify exactly one of subspace or dim

Parameters:
  • subspace – The domain of the identity matrix

  • dim – The dimension of the domain