-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add entangling_layer
to models.encodings
#1260
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1260 +/- ##
=======================================
Coverage 99.95% 99.95%
=======================================
Files 72 72
Lines 10454 10490 +36
=======================================
+ Hits 10449 10485 +36
Misses 5 5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Super fine with this kind of feature!
I think it would be nicer to start thinking how to move these features (or, better, if we want this) to the qiboml
package.
Personally, I think this is exactly that kind of feature (I mean the encodings in general) which would fit perfectly with it.
I would say this because it could be crucial to understand how to organize the code structure and because I am currently working on the variational model and, consequently, on the encoding and decoding strategy.
Data encoders are very important for QML, but not exclusive to QML. For instance, it's important for "regular" QFT and / or Quantum Phase Estimation applications (e.g. the example of unary encoding application to option pricing included in |
Thanks for this reply! I see, this perfectly makes sense. So the best way will be to integrate the encodings into |
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.
A final review, with a small suggestion follows.
TypeError, f"nqubits must be type int, but it is type {type(nqubits)}." | ||
) | ||
|
||
if nqubits <= 0.0: |
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.
Since you use this to define a Circuit, I think a similar error will be raised directly from line 332.
Checklist: