-
Notifications
You must be signed in to change notification settings - Fork 871
Qsvm #1418
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
Qsvm #1418
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
| validate_quantum_program_size( | ||
| tb.ref_pydantic("qprog_pauli"), | ||
| expected_width=2, # actual width: 2 | ||
| expected_depth=30, # actual depth: 30 |
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.
Maybe take some buffer fo the depth here.
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.
fixed, thanks!
| assert tb.ref("test_score") == 1 | ||
|
|
||
| # test notebook content | ||
| assert tb.ref("test_score_pauli") == 1 |
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.
Here, and in the line before (which you did not modify), maybe change this to 1.0? or even to <0.98?
In case there will be some fluctuations from time to time?
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.
fixed
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
I prefer : "... is the quantum version of classical Support Vector Machines (SVM)".
Complexity: Maybe write that it is model dependent. Such that it will be clear why it is empty? Another option is to remove this field.
I would add already here in the "abstract" that the potential advantage should be less effective resources in the quantum version compared to the classical one. For a given problem, there might be powerful kernels that "live" in the Hilbert space, and naturally it is easier to apply them on a quantum computer.
Reply via ReviewNB
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.
- fixed
- yes, your right, removed the field
- added that and a reference to a relevant article
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
"... component of a matrix, called the kernel matrix".
Nice explanation and intro.
Reply via ReviewNB
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.
fixed...
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
Steps 1 and 2 are done for each pair of data points, and Step 3 is done on the resulting kernel matrix.
I did not understand the difference between U_{DE} and U_{\phi}.
Add a subtitle "train", analog to the subtitle "prediction".
Reply via ReviewNB
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.
- tried to emphasize this
- improved the explanation
- added
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
It should work as it was - !pip install -qq -U "classiq[qml]" , let me know if otherwise.
Reply via ReviewNB
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.
not sure, let's discuss
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
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.
rephrased the sentence
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
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.
fixed...
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
Line #1. from classiq.execution import ExecutionSession
I think this import is not needed anymore. (included under classiq *)
Reply via ReviewNB
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.
removed it
| @@ -5,54 +5,162 @@ | |||
| "id": "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.
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.
fixed it.
PR Description
Some notes
Please make sure that the notebook runs successfully with the latest Classiq version.
Please make sure that you placed the files in an appropriate folder
.ipynband.qmodto be unique across this repository..qmod,.synthesis_options.json,.metadata.jsonIf applicable, please include link to the paper on which the notebook is based, in the notebook itself.
Please use
rebaseon your branch (no merge commits)Please link this PR to the relevant issue
Please make sure to run
pre-commitwhen commiting changesgitin the terminal, make sure to installpre-commitvia runningpip install pre-commitfollowed bypre-commit installpre-commitdocumentationpre-commit.pre-commitmay minorly alter some files. Make sure togit addthe changes done bypre-commit