Skip to content

Inconsistent type enforcement for finalize argument in ground state solvers #207

@20akshay00

Description

@20akshay00

DMRG methods take in a keyword argument finalize, while GradientGrassmann take in finalize!, meant to act as a callback function at the end of each solver iteration. DMRG is flexible with the type of the argument, whereas GradientGrassmann casts it into a Function.

This was encountered when trying to use a struct as a function so that it carries local state while performing the required finalizations.

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