-
Notifications
You must be signed in to change notification settings - Fork 125
Add Experiment Class for Discrete Time Crystal Experiments #249
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 Experiment Class for Discrete Time Crystal Experiments #249
Conversation
0594042
to
f93cd08
Compare
I've updated everything to do away with the Tasks paradigm and dataclasses entirely. Let me know if this is a worthwhile change. |
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.
some nits
@XiaoMiQC This is the first DTC PR, ready for review. |
for name in args: | ||
kwargs[name] = None if name is arg else locals()[name] |
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.
please don't be fancy like this with tests. Keep them "DAMP" (descriptive and meaningful phrases) rather than "DRY" (don't repeat yourself)
In addition to being clunky, this test is broken when I run it
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.
Tests should be working properly now, and the code is less fancy.
What they do, however, hasn't changed. They still simply run every combination of default or supplied values for path coverage. This could be improved but I'm not sure how would be best.
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.
looks good from my side. Xiao to sign off re: domain knowledge
cc @XiaoMiQC |
what's the status of this? |
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.
LGTM
PR 1 of 6 on implementing and graphing Figures 2d through 3d of Observation of Time-Crystalline Eigenstate Order on a Quantum Processor (arxiv:2107.13571)
This PR implements the Experiment Class used in experiments, defining the parameters to a single instance of the problem (in the DTCTask case), and the function to compare multiple instances of the problem (comparison_experiments)