-
Notifications
You must be signed in to change notification settings - Fork 49
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
Horizontal concatenation (hcat
) for Tableaux and Stabilizers
#304
Conversation
A very minor addition towards right track maybe, We need
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #304 +/- ##
==========================================
- Coverage 82.85% 82.77% -0.08%
==========================================
Files 60 60
Lines 3971 3977 +6
==========================================
+ Hits 3290 3292 +2
- Misses 681 685 +4 ☔ View full report in Codecov by Sentry. |
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 for starting this draft. I left a few quick comments that hopefully would be of help.
You know, but just a reminder, this also will need to have tests.
hcat
) for Tableaux and Stabilizers
Indeed. I have added tests, and doctests as well.
|
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 for this, it is a nice quality of life improvement. I left in a few minor comments.
Co-authored-by: Stefan Krastanov <[email protected]>
Co-authored-by: Stefan Krastanov <[email protected]>
Thank you, all of your comments have been incorporated. Also, fixed the The |
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.
This looks good! I added a TODO about some inefficiencies in this implementation, but they can be addressed separately after this is merged.
I will merge it tomorrow after tests pass, etc.
For
hcat
, it seems we would need a something like this if we suppose that we have a s1 as 4x4 and s2 as 4x4 stabilizersThis will give method error was we are dealing with AbstractVectors
I have added the if check that Tableus rows must be the same for horizontal concatenation.
I am trying to figure out what happends to the phase vector, In the vcat it is concatenated vertically which makes sense but in hcat, we don't want. We want the size of phase vector to remain the same but phases modified maybe
At the moment,
hcat
is not performing as expectedI have trouble understanding what's
hcat
xzs is doing inside the vcat function, If xzs are horizontal arrays then horizontally concatenating them form a matrix which makes sense. Since xzs is an AbstractMatrix and hcating them (not sure whats hcat is doing, maybe we are creating a vector of matrices by hcatting then we can perform vcat by wrapper of stabilizers for vcat?Thanks for your help!