Skip to content

Conversation

@roie-d-classiq
Copy link
Collaborator

@roie-d-classiq roie-d-classiq commented Jan 5, 2026

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

    • And that the file names are clear, descriptive, and match the notebook content.
      • Note that we require the file names of .ipynb and .qmod to be unique across this repository.
    • Plus, please make sure that all required files are included: .qmod, .synthesis_options.json, .metadata.json
    • And that images are embedded inside the notebook, not added as external files
  • If applicable, please include link to the paper on which the notebook is based, in the notebook itself.

  • Please use rebase on your branch (no merge commits)

  • Please link this PR to the relevant issue

  • Please make sure to run pre-commit when commiting changes

    • If you're using git in the terminal, make sure to install pre-commit via running pip install pre-commit followed by pre-commit install
    • Note that Classiq runs automatic code linting. Meaning that one of the tests verifies the output of pre-commit.
    • Also note that pre-commit may minorly alter some files. Make sure to git add the changes done by pre-commit

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

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
Copy link
Member

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.

Copy link
Collaborator Author

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
Copy link
Member

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?

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

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

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

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

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

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

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

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

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfinished sentence: "supply the feature map which."


Reply via ReviewNB

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove write_qmod and create_model


Reply via ReviewNB

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

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

Copy link
Collaborator Author

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",
Copy link
Member

@TomerGoldfriend TomerGoldfriend Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[1] and [3] are the same


Reply via ReviewNB

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed it.

@classiqdor classiqdor deleted the qsvm branch January 15, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants