Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
db6e5c2 to
d02bb0b
Compare
d02bb0b to
bee6ae1
Compare
| @@ -0,0 +1,786 @@ | |||
| { | |||
There was a problem hiding this comment.
1 - Why the mixing operation is Digital? and the Phase Analog?
2 - "toward a partition that maximizes the number of cut edges.":
*towards
*maybe minimizes the hamiltonian? instead of the cut. and put the f_obj in negative sign
Reply via ReviewNB
There was a problem hiding this comment.
1—The phase rotation is considered "analog" because it continuously modifies the state's phase in proportion to the cost function, while the mixer is "digital" because it is implemented using discrete quantum gate operations (e.g., RX rotations with discrete parameters) that drive transitions between basis states.
Should I eliminate this terminology? You have used it similarly in knasack
There was a problem hiding this comment.
It was a bit different - the digital was a digital transformation (arithmetrics). The phase is indeed an analog operation. I wouldn't use this terminology because it is a bit confusing, and not needed for the example, but that's up to you
| @@ -0,0 +1,786 @@ | |||
| { | |||
There was a problem hiding this comment.
Line #4. num_layers: CInt,
maybe you don't need this - use the gammas\betas size instead
Reply via ReviewNB
There was a problem hiding this comment.
I get:
AttributeError: 'CParamList' object has no attribute 'size'
Am I missing anything? Maybe in generative mode?...
I left it as it was for now.
There was a problem hiding this comment.
maybe you should use .len
| @@ -0,0 +1,786 @@ | |||
| { | |||
There was a problem hiding this comment.
Line #6. params: CArray[CReal, NUM_LAYERS * 2],
Maybe worth an explanation - this is an execution parameter, to be set by the sample method later on in the classical optimization loop
Reply via ReviewNB
There was a problem hiding this comment.
I tried clarifying, please resolve if it is clear.
| @@ -0,0 +1,786 @@ | |||
| { | |||
There was a problem hiding this comment.
Line #9. allocate(v.size, v)
no need to provide v.size, because it was declared in the main signature
Reply via ReviewNB
| @@ -0,0 +1,786 @@ | |||
| { | |||
There was a problem hiding this comment.
| @@ -0,0 +1,802 @@ | |||
| { | |||
There was a problem hiding this comment.
"can be applied to graph-based optimization tasks" - I would change to "can be applied to unconstrained combinatorial optimization tasks"
Reply via ReviewNB
| @@ -0,0 +1,802 @@ | |||
| { | |||
There was a problem hiding this comment.
| @@ -0,0 +1,802 @@ | |||
| { | |||
There was a problem hiding this comment.
hadamard_transform() - remove brackets
"As in vanilla QAOA" - what do you mean by that? isn't vanilla QAOA what you implement here?
Reply via ReviewNB
|
@NadavClassiq Please also do the following:
|
d725ec9 to
e1210a8
Compare
|
🌈 Incredible, @NadavClassiq! You've merged your 16th PR! 🎯🎊 Your ongoing commitment to classiq-library is truly remarkable. You're a driving force in our community! 🚀 We are grateful for your dedication! 💫 |
PR Description
Some notes
Please make sure that you placed the files in an appropriate folder
And that the files have indicative names.
Please note that Classiq runs automatic code linting, which may minorly alter some files.
pre-commit, you may runpre-commit install, and then at each commit, your files will be altered in a similar way