-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Bug] MultivariateStrategy.SERIES has different behaviors when passed to circuit or directly to QNN #609
Comments
To review. |
Hey @n-toscano - are you planning to work on this, or possibly we can pick it up? |
I can pick it up! Can we add it in the current (or next) sprint? |
Perfect. Sure, we can add it or either current or next sprint. For now, I'll just put it in the next sprint. |
So about this, I think one straightforward way would be to rename what the functions are called so they are a bit more clear? I did not have in mind that users would want to create a If you use the output of the I would suggest something like "encoding_blocks_list" instead of "create_fm_blocks" to emphasize that these are the encoding blocks and the user might have a different notion of what forms the full fm (also the ansatz layer in between)? And then the _interleave_ansatz_in_fm` should also be renamed to something more clear along the lines of "full_fm" or something. The reason that we have this weird function called
Renaming the functions like I suggest would still be okay with point 1 above, but then in order to get the full FM, the user would also have to provide the AnsatzConfig. |
Thanks for the contribution, @smitchaudhary. I must say that when I don't build a custom I see your point though, and the only way through I see would be making Side note, could we rename |
Agreed.
Yes, you are right. And sorry for causing the confusion. Some less than ideal design decisions on my part which are coming to bite us now. Among other such small reasons, one reason to make them user accessible, compared to all other constructors which start with
Yes. There are some potentially confusing functions related to observable construction. Very happy to have them renamed appropriately. I would ping @minutogiovanni since he is reworking observable configs anyways in #659 |
Good point! I can manage this in my PR |
So the only remaining point still open is (possibly) renaming the functions? I'm not against keeping them as they are (apart from |
Short description
When creating a FM that takes more than one variable as input, we need the two encodings not to commute with each other. If the config is passed directly to
QNN.from_configs()
then an entangling layer is placed in between, and all works. It's not the case if one passes it to theQuantumCircuit
.What is the expected result?
No response
What is the actual result?
No response
Steps/Code to reproduce
vs
Tracebacks (optional)
No response
Environment details (optional)
No response
Would you like to work on this issue?
Yes
The text was updated successfully, but these errors were encountered: