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

Engine creator helper function #5658

Merged
merged 11 commits into from Jul 7, 2022
Merged

Conversation

augustehirth
Copy link
Collaborator

Add a helper function to create a virtual engine with a noisy simulator.

@CirqBot CirqBot added the size: M 50< lines changed <250 label Jun 30, 2022
@dstrain115
Copy link
Collaborator

Are you going to expose this in the init files as well so that you don't have to specify the whole package?

@augustehirth
Copy link
Collaborator Author

Great points, ty. I think everything's fixed..

@mpharrigan
Copy link
Collaborator

API looks nice to me. This could be a good candidate for wrapping in a cg.workflow.SimulatedProcessorRecord subclass as a follow-up.

@augustehirth
Copy link
Collaborator Author

@mpharrigan The CI checks are onto the trickery. How to best evade this?

@mpharrigan
Copy link
Collaborator

all the test failures are about qiskit??? seems unrelated

for coverage: you can add

# coverage: ignore

to the block (may have to try exactly where to put it. test with check/pytest-changed-files-and-incremental-coverage

@mpharrigan
Copy link
Collaborator

mpharrigan commented Jul 1, 2022

for the typecheck you can add it to the list of ignored 3rd party modules in mypy.ini

edit: or add a type: ignore comment to that line

@mpharrigan
Copy link
Collaborator

@dstrain115 does this LGTY?

Copy link
Collaborator

@dstrain115 dstrain115 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, looks fine to me.

@augustehirth augustehirth added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 7, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jul 7, 2022
@CirqBot CirqBot merged commit de3907c into quantumlib:master Jul 7, 2022
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jul 7, 2022
@augustehirth augustehirth deleted the get_sim_engine branch July 7, 2022 00:27
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Add a helper function to create a virtual engine with a noisy simulator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants