Skip to content

[Discussion] Bring back MPSKit.PeriodicArray? #287

Description

@leburgel

Working with non-trivial cells has been, and still is I think, quite tricky in terms of correctly handling coordinates and directions. Looking at the current state of the code, all of the mod1, _next and _prev calls that are required to make this work aren't exactly helping with the transparency of the unit cell logic.

I remember that initially PEPSKit.jl was using MPSKit.PeriodicArrays to represent unit cells of infinite networks, but this approach was abandoned in the process of figuring out some very early issues with AD and Zygote.jl in particular. However, at this point never having to manually call mod1 feels like a very nice prospect to me. Should we have a go at bringing back the unit cell representation in terms of MPSKit.PeriodicArray? I think at this point we should be better equipped to figure out what issues this was causing, if there would be any issues with reinstating this now in the first place.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions