Skip to content
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

Integrate StreamManager with run_sweep() #6233

Merged

Conversation

verult
Copy link
Collaborator

@verult verult commented Aug 4, 2023

  • Connects the user interface of engine circuit execution with the StreamManager introduced in Add StreamManager #6199.
  • QuantumRunStream supports CreateQuantumProgramAndJob requests, so the implementation here bypasses EngineProgram altogether, which will continue to use unary RPCs. This also aligns with our eventual goal of removing programs as a resource.
  • ProcessorSampler, the recommended interface to run circuits on QuantumEngine, uses Engine.run_sweep() under the hood.

Note: Previous review history is in this PR against my own fork. I wanted to test something with GitHub's workflow, but it totally did not work :)

@dstrain115
cc @maffoo @wcourtney

@verult verult requested a review from dstrain115 August 4, 2023 20:10
@verult verult requested review from wcourtney, vtomole, cduck and a team as code owners August 4, 2023 20:10
@CirqBot CirqBot added the size: L 250< lines changed <1000 label Aug 4, 2023
@codecov
Copy link

codecov bot commented Aug 5, 2023

Codecov Report

Patch coverage: 99.52% and project coverage change: -0.01% ⚠️

Comparison is base (14baaa5) 97.37% compared to head (a94b255) 97.37%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6233      +/-   ##
==========================================
- Coverage   97.37%   97.37%   -0.01%     
==========================================
  Files        1116     1116              
  Lines       96042    96157     +115     
==========================================
+ Hits        93524    93632     +108     
- Misses       2518     2525       +7     
Files Changed Coverage Δ
cirq-google/cirq_google/engine/engine_job.py 97.14% <93.33%> (-0.35%) ⬇️
cirq-core/cirq/ops/parity_gates.py 98.15% <100.00%> (+0.03%) ⬆️
cirq-core/cirq/ops/parity_gates_test.py 100.00% <100.00%> (ø)
cirq-google/cirq_google/engine/engine.py 98.21% <100.00%> (+0.05%) ⬆️
cirq-google/cirq_google/engine/engine_client.py 100.00% <100.00%> (ø)
...rq-google/cirq_google/engine/engine_client_test.py 100.00% <100.00%> (ø)
cirq-google/cirq_google/engine/engine_job_test.py 100.00% <100.00%> (ø)
...google/cirq_google/engine/engine_processor_test.py 99.76% <100.00%> (ø)
cirq-google/cirq_google/engine/engine_test.py 100.00% <100.00%> (ø)
cirq-ionq/cirq_ionq/__init__.py 100.00% <100.00%> (ø)
... and 2 more

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@verult
Copy link
Collaborator Author

verult commented Aug 8, 2023

Code coverage decreased because coverage: ignore is ignored.

@verult verult merged commit 86479ae into quantumlib:master Aug 8, 2023
34 of 35 checks passed
verult added a commit to verult/Cirq that referenced this pull request Aug 15, 2023
verult added a commit that referenced this pull request Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: L 250< lines changed <1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants