Skip to content

Updating Grovers algorithm workshop#1526

Open
Alexandre-Classiq wants to merge 6 commits intoClassiq:mainfrom
Alexandre-Classiq:alexandre-update-grover-workshop
Open

Updating Grovers algorithm workshop#1526
Alexandre-Classiq wants to merge 6 commits intoClassiq:mainfrom
Alexandre-Classiq:alexandre-update-grover-workshop

Conversation

@Alexandre-Classiq
Copy link
Copy Markdown
Collaborator

PR Description

Updating Grover's algorithm workshop

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Alexandre-Classiq Alexandre-Classiq force-pushed the alexandre-update-grover-workshop branch from 5e577b1 to 540c61a Compare March 20, 2026 16:45
@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

Line #7.        hadamard_transform(x)  # Prepare the minus state

The comment is inconsistent with the instruction (to prepare the plus state..)


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

QMOD -> Qmod

Drop the explicit name, it's not needed: x = QBit() in both 1 and 3

Use consistent tense: A variable that was declared -> A variable that is declared

you will always use Output for all variables -> you should use Output for all parameters


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

with what are their input arguments -> with their parameters


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

and then start a step-by-step build of it -> and then start to build it step-by-step


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

I think the proper wording is to reflect about some state (line, plane), not around. This phrase occurs in 7 more places below.


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

These first two sentences are very odd in style IMO. In particular, this is not about the "beauty of Classiq" (which is a company, and we can argue about its aesthetic qualities), but perhaps the power of the Qmod language, and the Qmod compiler.

How about the following -

Now we turn to actually implementing the oracle. With Qmod quantum expressions, capturing the intent becomes straightforward. The compiler does the heavy-lifting of synthesizing the reversible circuits for us.


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

The first sentence seems broken grammatically (incomplete?).

Also the second sentence is IMO cumbersome. Could clearer thus -

Here we want to apply a π phase to all states that are not equal our initial guess. The reflection operator (our diffuser) is defined as:


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

This sentence is again cumbersome IMO (and there's a grammatical error).

Improvement suggestion -

To implement a reflection about the initial state |psi0>, we instead perform a reflection about the computational zero state ∣0⟩, conjugated by our state-preparation unitary for the initial state |psi0>.


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

The term "squeeze" is fun, but potentially confusing (and technically inaccurate). It's conjugation, or applying an operator in a different basis.


Reply via ReviewNB

@@ -18,7 +18,7 @@
},
Copy link
Copy Markdown
Member

@matanvax2 matanvax2 Apr 9, 2026

Choose a reason for hiding this comment

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

I'm personally not crazy about the bombastic style in "harvest the fruits of the hard work"..


Reply via ReviewNB

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.

2 participants