-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 snapshot_id to get_sampler interface on engine object #7005
base: main
Are you sure you want to change the base?
add snapshot_id to get_sampler interface on engine object #7005
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7005 +/- ##
==========================================
- Coverage 97.89% 97.89% -0.01%
==========================================
Files 1085 1085
Lines 95098 95108 +10
==========================================
+ Hits 93096 93104 +8
- Misses 2002 2004 +2 ☔ View full report in Codecov by Sentry. |
self, | ||
processor_id: Union[str, List[str]], | ||
run_name: str = "", | ||
snapshot_id: str = "", |
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.
for backwards compatiblity, shouldn't snapshot_id be last since it's a new arg?
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.
In #6739 , the reviewer suggestion was to put snapshot_id
next to run_name
since they are related. I'd like to keep the APIs consistent. I don't think our guarantees of backwards compatibility is stringent in cirq-google
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.
On second thought moving snapshot_id
to the last arg is consistent with the get_sampler
API on the EngineProcessor
. Moving it
…Cirq into u/smeeks/engine_get_sampler
Fixes #7001