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

unleash confusion map #5717

Merged
merged 5 commits into from Jul 11, 2022
Merged

Conversation

pavoljuhas
Copy link
Collaborator

Revert "Guard confusion_map usage (#5534)"

Assume measure() methods of SimulationState subclasses accept the
confusion_map argument. Remove temporary workaround for methods
not taking confusion_map.

Also disable pylint check on missing argument which is required
in the base class but unknown to subclasses actually called.

This reverts commit 25388af.

Assume SimulationState subclasses accept the confusion_map argument in
their `measure()` methods.  Remove work around for classes that do not.

This reverts commit 25388af.
Some subclasses don't need it and don't even know it.
@pavoljuhas pavoljuhas requested review from a team, vtomole and cduck as code owners July 11, 2022 19:14
@CirqBot CirqBot added the size: M 50< lines changed <250 label Jul 11, 2022
@95-martin-orion 95-martin-orion self-assigned this Jul 11, 2022
Copy link
Collaborator

@95-martin-orion 95-martin-orion left a comment

Choose a reason for hiding this comment

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

Excellent PR naming.

cirq-core/cirq/sim/simulation_state.py Outdated Show resolved Hide resolved
cirq-core/cirq/sim/simulation_state.py Outdated Show resolved Hide resolved
@pavoljuhas pavoljuhas added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 11, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jul 11, 2022
@CirqBot CirqBot merged commit fef9487 into quantumlib:master Jul 11, 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 11, 2022
@pavoljuhas pavoljuhas deleted the unleash-confusion_map branch July 11, 2022 21:27
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Revert "Guard confusion_map usage (quantumlib#5534)"

Assume measure() methods of SimulationState subclasses accept the
`confusion_map` argument.  Remove temporary workaround for methods
not taking `confusion_map`.

Also disable pylint check on missing argument which is required
in the base class but unknown to subclasses actually called.

This reverts commit 25388af.
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

3 participants