Skip to content

Particle number density not enforced in hubbard_model Hamiltonian #47

@leburgel

Description

@leburgel

The docstring and signature of the hubbard_model Hamiltonian indicate that an integer particle number density can be imposed through the n keyword argument. However, this is not actually used in the implementation, so we always return a Hamiltonian with zero filling contrary to what the docstring says.

We should implement the proper uniform filling, which boils down to translating the integer n to the appropriate sector for the chosen symmetry shifting the Hamiltonian using MPSKit.add_physical_charge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions