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
get_qcs_objects_for_notebook
needs cleanup and bugfixes
#4587
Comments
get_qcs_objects_for_notebook
needs cleanupget_qcs_objects_for_notebook
needs cleanup and bugfixes
The call to |
(1) seems fine (2) -- I think the goal is to remove gateset as a required arg for get_engine_sampler. it's weird to have to pick your target gateset instead of getting a device and it telling you its supported gateset(s) (3) this seems like a bug in |
Did we fix this already in another issue? If not, this seems like some doc cleanup that should likely be addressed if possible before 1.0. Tentatively assigning before 1.0 to this issue. |
This is partly fixed by #5045, which cleans up the logic including removing hard-coded |
Unassigning myself for now in case anyone can get to this before I can! Otherwise happy to take on this when I get some spare cycles. |
#5240 should ideally be replaced by calling a refactored version of
in addition to (or maybe in place of) existing return values. |
I'm taking this on in #5759 |
@wcourtney @verult I think we can close this now. Do you agree? |
Description of the issue
get_qcs_objects_for_notebook
was added in #4286 and is super useful to abstract out the authentication logic for accessing QCS. However, I think there are a few rough edges -- from a user perspective, I haven't dug into the technical details yet.device_sampler.is_signed_in
) but after that, there's no usage of thedevice_sampler
object. This doesn't look like the intended usage of an object specifically has adevice
andsampler
objects ?sqrt_iswap
gateset string is hardcoded deep inside theget_qcs_objects_for_notebook
method. This also looks like a bug and something that shouldn't be intended?Cirq/cirq-google/cirq_google/engine/qcs_notebook.py
Line 119 in 6562a05
Cirq version
0.13.0
The text was updated successfully, but these errors were encountered: