Cirq icon indicating copy to clipboard operation
Cirq copied to clipboard

QCS Getting Started Guide - setup cleanup

Open verult opened this issue 2 years ago • 1 comments

  • remove default processor id
  • set project env var

Note: get_qcs_objects_for_notebook() already selects a default processor id for device and sampler generation using the same logic, but the ID of the newly selected processor is not returned.

Alternatively, get_qcs_objects_for_notebook() can be modified to return a processor instead of a device and sampler, and retrieve the selected processor via processor_id. I don't have a preference between the two options.

There are 3 other spots where the processor id is hard-coded. If this approach looks good, I'll go ahead and update the other places, too.

cc @dstrain115 @wcourtney

verult avatar Apr 09 '22 01:04 verult

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

This PR is now stale - get_qcs_objects_for_notebook() has been updated to use the latest form, and device.qubits has been fixed.

Will add logic to check processor health when picking a default processor in a separate PR.

verult avatar Sep 08 '22 20:09 verult