Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use rotation
eps
inGateCounts
#1255New 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
base: main
Are you sure you want to change the base?
Use rotation
eps
inGateCounts
#1255Changes from 16 commits
8feb870
0b7a9e3
b6c207d
931f1bc
5272c9f
5f862d3
a1a8620
3f36901
f5f69aa
35a1b4a
9b45a0b
4f434e1
053fda0
886871b
4cd3a36
5a0f65e
96ee810
3235c06
b1c2db6
a6da238
188ddff
ce6ee6b
1f0e0b7
265ce70
b03a755
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
why
unique=False
?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 was to ensure that the representation was more stable. from the docs:
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.
Actually, I'm not sure what the best way is to check if two rotation frequency tables are the same, as the epsilons could have been stored with different precisions, or be approximate.
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 still desperately needs a description of the data contained within the
GateCounts
dataclass in the class docstring.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.
so how does it work when adding or multiplying when there are values that differ only in precision
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
__mul__
is to multiply with some intother
, right? which just multilpies the frequencies, not affecting theepsilons
.For add, it just combines the two counters together, and equal keys will get merged. (handled by
Counter.__add__
). The precision of representing epsilon is only used when converting it to a string key infrom_rotation_with_eps
, but not stored in the GateCounts object itself.