Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ResultExpr #216

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

Krzmbrzl
Copy link
Collaborator

@Krzmbrzl Krzmbrzl commented Jul 3, 2024

This is a wrapper type that allows to encode the LHS (the result) as well as the LHS (the expression) of an equation. Explicitly tracking the LHS is required in order to access information about which indices are paired together during spin integration (the approach abusing the symmetrizer operators breaks down for results that have mixed index spaces in the bra and/or ket).

In the future, this class may solve as a nucleation point for a framework to store arbitrary metadata about a given expression because it is not nestable (contrary to Expr objects).

@Krzmbrzl Krzmbrzl requested a review from evaleev July 3, 2024 13:55
This is a wrapper type that allows to encode the LHS (the result) as
well as the LHS (the expression) of an equation. Explicitly tracking the
LHS is required in order to access information about which indices are
paired together during spin integration (the approach abusing the
symmetrizer operators breaks down for results that have mixed index
spaces in the bra and/or ket).

In the future, this class may solve as a nucleation point for a
framework to store arbitrary metadata about a given expression because
it is not nestable (contrary to Expr objects).
@Krzmbrzl Krzmbrzl marked this pull request as draft July 11, 2024 12:32
class Tensor;
class Variable;

class ResultExpr {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dox plz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants