Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Find a way to get Zygote working with PEPS without overloading Base.:+(::PEPS, ::PEPS) #17

Description

@mtfishman

Currently, Zygote makes use of the definition Base.:+(::PEPS, ::PEPS) to add up sums of gradient terms that show up in the chain rule. For the sake of adding up gradient terms, it is an elementwise sum of the elements of the PEPS tensors. However, this definition is at odds with the usual definition we would think of for adding PEPS in terms of adding the quantum states.

It would be nice to find a way to overload Zygote behavior so we can define Base.:+(::PEPS, ::PEPS) as the addition of quantum states instead of elementwise addition.

Cross reference: #10 (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