-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
@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. |
There was a problem hiding this 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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
…5281) Follow-up to quantumlib#5260, as that PR makes final_step_result unnecessary. Also deprecate DensityMatrixSimulatorState and StateVectorSimulatorState Closes quantumlib#5271
…5281) Follow-up to quantumlib#5260, as that PR makes final_step_result unnecessary. Also deprecate DensityMatrixSimulatorState and StateVectorSimulatorState Closes quantumlib#5271
Follow-up to #5260, as that PR makes final_step_result unnecessary.
Also deprecate DensityMatrixSimulatorState and StateVectorSimulatorState
Closes #5271