Skip to content

Deprecate the final_step_result parameter of TrialResult #5281

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

Merged
merged 10 commits into from
Apr 22, 2022

Conversation

daxfohl
Copy link
Collaborator

@daxfohl daxfohl commented Apr 22, 2022

Follow-up to #5260, as that PR makes final_step_result unnecessary.

Also deprecate DensityMatrixSimulatorState and StateVectorSimulatorState

Closes #5271

@CirqBot CirqBot added the size: L 250< lines changed <1000 label Apr 22, 2022
@daxfohl daxfohl marked this pull request as ready for review April 22, 2022 03:33
@daxfohl daxfohl requested review from a team, vtomole and cduck as code owners April 22, 2022 03:33
@daxfohl daxfohl requested a review from viathor April 22, 2022 03:33
@daxfohl
Copy link
Collaborator Author

daxfohl commented Apr 22, 2022

@95-martin-orion This ended up being bigger than I thought, but should end up making things simpler once all these things get fully removed. The removal of mocks from a bunch of tests is a good sign. No rush on this one.

@95-martin-orion 95-martin-orion self-assigned this Apr 22, 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.

One question, just for my own benefit. Rename of ActOnArgs to follow?

@@ -876,6 +889,55 @@ def sample_measurement_ops(
)


# When removing this, also remove the check in simulate_sweep_iter.
# Basically there should be no "final_step_result" anywhere in the project afterwards.
def _deprecated_step_result_parameter(
Copy link
Collaborator

Choose a reason for hiding this comment

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

The intent is to remove this method after the next release, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this was purely to reduce the redundancy of those deprecation attributes. It's not intended to be general purpose or used for anything else ever, and will go away when the deprecated parameters do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

After this, #5270 will be a small PR, then ActOnArgs rename after that.

@95-martin-orion 95-martin-orion added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Apr 22, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Apr 22, 2022
@CirqBot CirqBot merged commit 94a3c22 into quantumlib:master Apr 22, 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 Apr 22, 2022
@daxfohl daxfohl deleted the dep-sim-state branch April 22, 2022 22:34
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
…5281)

Follow-up to quantumlib#5260, as that PR makes final_step_result unnecessary.

Also deprecate DensityMatrixSimulatorState and StateVectorSimulatorState

Closes quantumlib#5271
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
…5281)

Follow-up to quantumlib#5260, as that PR makes final_step_result unnecessary.

Also deprecate DensityMatrixSimulatorState and StateVectorSimulatorState

Closes quantumlib#5271
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.

Deprecate parameter final_step_result from TrialResult.init
3 participants