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

Correctly draw analog blocks; improve HamEvo drawings #36

Merged
merged 4 commits into from
Oct 9, 2023
Merged

Conversation

nmheim
Copy link
Collaborator

@nmheim nmheim commented Oct 4, 2023

note the analog blocks. the first analog block is large enough to have all the text in multiple lines. the second one is too small so we plot everything on one line.

test

@nmheim nmheim requested a review from madagra October 4, 2023 17:22
Copy link
Collaborator

@madagra madagra left a comment

Choose a reason for hiding this comment

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

OK, @nmheim, this looks so cool!

qadence/draw/utils.py Show resolved Hide resolved
@RolandMacDoland
Copy link
Collaborator

Indeed, looks nice. Thanks for this !

@RolandMacDoland
Copy link
Collaborator

RolandMacDoland commented Oct 5, 2023

Question @nmheim , why is the last one shaded ? I.e. before the swaps. Is this because it is the observable to be measured ?

@nmheim
Copy link
Collaborator Author

nmheim commented Oct 6, 2023

Question @nmheim , why is the last one shaded ? I.e. before the swaps. Is this because it is the observable to be measured ?

Good point, I initially wanted to shade non hermitian blocks. But then when implementing the analog ones used the same draw logic. What do you thing about only shading scale/add blocks and remove it for hamevo/anslog?

@nmheim nmheim merged commit fabcde1 into main Oct 9, 2023
@nmheim nmheim deleted the nh/draw-analog branch October 9, 2023 13:18
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.

3 participants