-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix implementations of symbol_substitution() for boxes that cannot contain symbols. #1004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to call the copy constructors?
e.g. return std::make_shared<Unitary1qBox>(*this);
Op_ptr symbol_substitution( | ||
const SymEngine::map_basic_basic &) const override { | ||
return Op_ptr(); | ||
return std::make_shared<ConjugationBox>(compute_, action_, uncompute_); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConjugationBox
should support symbols, but we can fix it in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made an issue and added a comment.
Good idea: done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
These were just returning a null
Op_ptr
.Fixes #999 .