Skip to main content

dimension

Method of State.

dimension(integer site) -> integer

Returns the dimension of the basis state at the given site.

Parameters

  • site: The site of the qudit whose dimension is returned.