-
-
Notifications
You must be signed in to change notification settings - Fork 504
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 hermitian_decomposition method #39200
base: develop
Are you sure you want to change the base?
add hermitian_decomposition method #39200
Conversation
Documentation preview for this PR (built with commit ee20021; changes) is ready! 🎉 |
caed579
to
f2f35b7
Compare
I really dislike these apply-suggestion-commits with a completely useless commit message. Could you please squash and rebase? It makes it easier to see which changes have been done and looking through the logs much later. |
add hermitian_decomposition method given a Hermitian matrix U, returns a matrix A such that U = AA* use translated GAP source code for BaseChangeCanonical Co-Authored-By: Travis Scrimshaw <[email protected]>
6300bae
to
a8cd89e
Compare
Sure. I agree, the commit messages are pretty useless. I've squashed the commits here. Which branch should I rebase on? I rebased PR#38455 on this one (PR#39200) already. |
Thanks. Sorry, I misspoke slightly, I meant force-push.You will need to rebase #38455 again though… |
I don't think this handles the 1x1 case, so I'll add a fix. |
Co-authored-by: Travis Scrimshaw <[email protected]>
Co-authored-by: Travis Scrimshaw <[email protected]>
Co-authored-by: Travis Scrimshaw <[email protected]>
Co-authored-by: Travis Scrimshaw <[email protected]>
Co-authored-by: Travis Scrimshaw <[email protected]>
…alters/sage into hermitian_decomposition
@tscrim How do I squash these commits given there's a merge commit? We may've done this before, but I don't see how. |
I would just rebase the entire branch over the latest |
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.
Just a few more details, modulo making row
0-based.
|
||
A = B^* B, | ||
|
||
where `B^\ast` is the conjugate-transpose. |
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.
where `B^\ast` is the conjugate-transpose. | |
where `B^*` is the conjugate-transpose. |
Let's be consistent. ;)
|
||
A conjugate-symmetric version of Gaussian elimination. | ||
This is a translation of ``BaseChangeToCanonical`` from | ||
the GAP ``forms`` for a Hermitian form. |
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.
the GAP ``forms`` for a Hermitian form. | |
the GAP ``forms`` package for a Hermitian form. |
row += 1 | ||
|
||
# Look for a non-zero element on the main diagonal, starting from `row` | ||
i = row - 1 # Adjust for zero-based indexing in Sage |
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.
I don't think this is possible as we mutate i
compared to row
.
Given a Hermitian matrix$U$ over $GF(q^2)$ , returns a matrix $A$ such that $U = AA^\ast$ , where $^\ast$ denotes conjugate-transpose.
Note that the Cholesky decomposition is meant for characteristic zero, and also only returns a lower/upper triangular matrix.
📝 Checklist
⌛ Dependencies