Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #88 +/- ##
=======================================
Coverage 90.99% 90.99%
=======================================
Files 34 34
Lines 5683 5683
=======================================
Hits 5171 5171
Misses 512 512 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
JoelPasvolsky
left a comment
There was a problem hiding this comment.
@qci-keen, I have made some suggestions on the Classical Arithmetic file, I will try to review additional ones this afternoon.
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
JoelPasvolsky
left a comment
There was a problem hiding this comment.
Added some suggestions for classical registers and measurement-based feedback. Will go on to the next three JNs now
JoelPasvolsky
left a comment
There was a problem hiding this comment.
Added suggestions on parallel Bell, RUS, and simple bell state JNs. Still need to look at the Bayesian example
Formatting and language changes Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
more formatting and language (the first batch was full so this is a second one). Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
remove old intialization Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
JoelPasvolsky
left a comment
There was a problem hiding this comment.
Comments from running the first 6 JNs, will do Bayesian and random circuit generation next.
One general thought: what about adding a README.rst file that gives a quick description of the examples and helps a new user decide in what order to run them (i.e., also ranks them from beginner to advanced)?
|
|
||
| # %% [markdown] | ||
| # ## Conditional Branching & Registers | ||
|
|
There was a problem hiding this comment.
As a new user, things that would be unclear to me and would appreciate having described here in markdown, are:
- c0 is updated based on
measure(q0, register=c0)but c1 does not seem to be updated in the RTCF part of th ealgorithm - Why
measure(q0, register=c0)for the first qubit but justmeasure(q1)for the second - Why
with q1.If(c0 | c1 == 1)selectsq1for the method (couldscorq0be used instead)?
There was a problem hiding this comment.
@qci-amos could you help me with writing up an answer to this? Questions about scope and the inner workings of RTCF are not in my wheelhouse.
There was a problem hiding this comment.
the example isn't intended to be meaningful, just illustrate some mechanics... we could update it to be slightly more meaningful? @qci-keen if you can think of something cute to show then we can update it, otherwise I suggest we just keep this as is (or omit it) and we can find something else later.
| with q1.If(c0 | c1 == 1): | ||
| x(q1) # X gate (bit flip) | ||
|
|
||
| measure(q1) |
There was a problem hiding this comment.
would this example be better if the above algorithm was in a loop that executed a few times so measurement of q1 would be in the RTCF?
thisac
left a comment
There was a problem hiding this comment.
Don't forget to add license headers to all files (they were missing in more files than the ones I commented on). This (normally) includes the __init__.py files, although they shouldn't be necessary at all here since the examples aren't part of the package structure.
JoelPasvolsky
left a comment
There was a problem hiding this comment.
Okay, @qci-keen, I think I've gone through all of it. These JNs will be very helpful for users, thank you!
Language and typos Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
|
Ideally we wouldn't direct people to more than one place to find end-user examples for our system... |
Formatting and job labels Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
Co-authored-by: Joel Pasvolsky <34041130+JoelPasvolsky@users.noreply.github.com>
| @@ -0,0 +1,15 @@ | |||
| # Copyright © 2026 D-Wave | |||
There was a problem hiding this comment.
I don't think we need to add © here or elsewhere in the license headers. We don't have them in the other Python files. @JoelPasvolsky, do you know?
| # Copyright © 2026 D-Wave | |
| # Copyright 2026 D-Wave |
There was a problem hiding this comment.
Also, you should be able to remove the __init__.py files (this and one higher level) since this is not part of the package.
There was a problem hiding this comment.
removed notice from __init__.py, waiting for decision on ©.
There was a problem hiding this comment.
Sorry, I meant remove the files altogether. If kept, they should have the license.
| parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) | ||
| sys.path.append(parent_dir) |
There was a problem hiding this comment.
Is this only for the rand_circ_fixed_hamming_weight import? If so, I'd recommend skipping it and instead just do
from random_circuit_generation import rand_circ_fixed_hamming_weightwhich now should work since you moved that file next to bayesian_decoding_example.py.
There was a problem hiding this comment.
It doesn't work for me to do that, must be something with which directory my vscode thinks is the base directory.
There was a problem hiding this comment.
Strange, I thought it could have something to do with running it as a notebook vs just Python, but it works both ways for me.
There was a problem hiding this comment.
what if you try:
from .random_circuit_generation import rand_circ_fixed_hamming_weight?
This PR adds QCDL/qiskit examples that demonstrate unique aspects of QCDL and dual-rail qubits.