Skip to content

isunitspace doesn't check dimension for GenericUnit sectors #537

Closed

Description

@lkdvos

isunitspace for GenericUnit sectors only checks dim(V) != 0 and that all sectors are units, never that degeneracy is 1 (unlike the SimpleUnit branch). removeunit on a multifusion leg with unit-sector degeneracy > 1 silently drops the leg with wrong total dimension.

src/spaces/vectorspaces.jl:218-226. Fix: also require dim(V) == 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions