Use allow_unknown_parameters in SparseLabelOp.assign_parameters#1023
Conversation
1a9adde to
36f56c1
Compare
Pull Request Test Coverage Report for Build 3967567123
💛 - Coveralls |
mrossinek
left a comment
There was a problem hiding this comment.
In general I think this is good to go. I am just not sure about some "meta-details".
What I mean by that is that this refactors the change done by the bugfix PR #1008. That PR was backported to stable (but not released yet).
- Does that mean we can simply merge this as is without a release note?
- Should we backport this, too?
Pinging @woodsp-ibm and @manoelmarques for input on this
|
Actually, this now uses an unreleased feature of Qiskit Terra so we canNOT backport it as such. I am a bit surprised that the CI did not catch this... @manoelmarques are we still testing against Qiskit Terra installed from source even though our requirements file currently only uses |
|
If the change uses/depends on new features from an as yet unreleased version then the requirements.txt needs to get updated too by this PR, if it does not already reflect the version dependence it requires. |
Yes, I can do that. But I think Max is asking why this PR passed the CI even though I did not update |
I am indeed wondering that. Can you, thus, please ensure the following:
|
|
The test for this change was added in the previous PR, #1008. Do you want me to update |
The test there does not seem to be actually doing this though. It constructs an operator which will have two parameters,
If my reasoning above is correct, the CI is working fine and this case is not covered correctly by the unittests. |
The test there was actually testing this behavior because it causes the ParameterExpression containing only b to be passed an assignment dictionary only containing a. Nevertheless, I've added another test on your suggestion that is perhaps more explicit. |
|
Alright, then all that is missing is the update of the |
|
Do you want me to update |
|
As explicitly said: please update it now. We are continuing to test Qiskit Nature against Qiskit Terra main to catch potential breakage early. This is an intentional choice of the application developers team to do this for the packages within the Qiskit organization. Thus, CI is indeed working as intended. The reason I originally expected this to fail would have been the |
|
What's the correct way to update
|
|
Currently it is |
Co-authored-by: Max Rossmannek <max.rossmannek@uzh.ch>
…it-community#1023) * use allow_unknown_parameters in SparseLabelOp.assign_parameters * add test * make the copyright checker happy * update requirements.txt to qiskit-terra 0.23 * update requirements.txt to github qiskit-terra * change requirements.txt to qiskit-terra 0.23 again Co-authored-by: Max Rossmannek <max.rossmannek@uzh.ch> Co-authored-by: Max Rossmannek <max.rossmannek@uzh.ch> Co-authored-by: Manoel Marques <Manoel.Marques@ibm.com>
Summary
Fixes #1010
Details and comments