Skip to content

Minor TODO formatting and a doctest fix - #78

Merged
JoelPasvolsky merged 5 commits into
dwavesystems:mainfrom
JoelPasvolsky:todos
Sep 2, 2026
Merged

JoelPasvolsky merged 5 commits into
dwavesystems:mainfrom
JoelPasvolsky:todos

Conversation

@JoelPasvolsky

Copy link
Copy Markdown
Collaborator

Planned to do more on this one but running out of time, so at least have the TODOs visible for reviewers

@codecov

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.18%. Comparing base (2b82b20) to head (5fc4c61).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #78   +/-   ##
=======================================
  Coverage   90.18%   90.18%           
=======================================
  Files          31       31           
  Lines        5317     5317           
=======================================
  Hits         4795     4795           
  Misses        522      522           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread dwave/gate/qcdl/operations.py Outdated
def sydg(qubit: QCDLModule) -> None:
r"""SQRT of Y_adjoint gate.
TODO it's not a qiskit gate
.. todo:: it's not a qiskit gate (comment from @qci-amos)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what todo do you have in mind?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@qci-amos, wasn't this your comment originally? I just made it visible.
Or maybe when I was linking to the corresponding Quskit gates I couldn't find this one

@qci-amos qci-amos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ok, let's just remove those lines then

Comment thread dwave/gate/qcdl/operations.py Outdated
Comment thread dwave/gate/qcdl/operations.py Outdated
@JoelPasvolsky

Copy link
Copy Markdown
Collaborator Author

ok, let's just remove those lines then

Sure, this is originally your comment

Apply suggestion from @qci-amos

Co-authored-by: Amos Anderson <45039789+qci-amos@users.noreply.github.com>
Comment thread docs/workflow.rst
.. testcode::
:hide:

print(print_qcdl(qcdl_program))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The second print shouldn't be needed, right?

Suggested change
print(print_qcdl(qcdl_program))
print_qcdl(qcdl_program)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's a quirk of doctest: it outputs content of a print() statement that can be tested but without that print() statement the code in line 74 does not produce output. This is why I added the hidden testcode directive of line 78, to produce output that is tested by the testoutput directive in line 83

@JoelPasvolsky
JoelPasvolsky merged commit 22ff3a4 into dwavesystems:main Sep 2, 2026
14 checks passed
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