-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add SymmetricBanded
matrix block encoding
#1177
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.
A couple of things, but lgtm after fixing them
is_symbolic(self.bandsize) | ||
or is_symbolic(self.system_bitsize) | ||
or is_symbolic(self.num_nonzero) |
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.
we should probably keep this check for now, but it's interesting that I think this method would still work for symbolic values (except for the check, which can be ignored for symbolic)
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.
You're right that it would still work. Is it expected that we would ever call_classically
a bloq with symbolic attributes but concrete ClassicalValT
?
Add row and column oracles to block encode a symmetric banded matrix. The symmetry here refers to the pattern of non-zero entries, not necessarily the entries themselves, which are determined separately by the entry oracle.