fix: add labs to documentation testing workflow#9560
Conversation
|
I feel bad @dwierichs , you write these nice docstrings (#9539) and they aren't even being tested. 😢 I've opened this as a WIP pr to chip away at whenever I have some spare time. Feel free to help out! |
| >>> op = batched_pauli_decompose(mat) | ||
| >>> op | ||
| 0.25 * X(1) + 0.4 * Z(1) | ||
| 0.25 * X(0) + 0.4 * (X(1) @ Z(0)) |
There was a problem hiding this comment.
previous was wrong (look at hamiltonian)
There was a problem hiding this comment.
Without this, there were import errors
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9560 +/- ##
=======================================
Coverage 99.45% 99.45%
=======================================
Files 614 614
Lines 67863 67865 +2
=======================================
+ Hits 67490 67492 +2
Misses 373 373 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…pected output for that
…nto fix/labs-doctest
…e in variational_kak
| >>> print(qre.estimate(sos_state)) | ||
| --- Resources: --- | ||
| Total wires: 32 | ||
| Total wires: 51 |
There was a problem hiding this comment.
@Jaybsoni , flagging this in case it's unexpected
| 3: ─────────────╰⊕─╰X─┤ State | ||
| 2: ──X─╭●──X──────────┤ ╭State | ||
| 4: ────╰X─╭●─╭●───────┤ ├State | ||
| 1: ──X────├●─│────────┤ ├State |
There was a problem hiding this comment.
Is this additional X expected? 😓
dwierichs
left a comment
There was a problem hiding this comment.
All looks good/easy to conclude to me :) Will approve after last things are resolved 👍
| 3: ─────────────╰⊕─╰X─┤ State | ||
| 2: ──X─╭●──X──────────┤ ╭State | ||
| 4: ────╰X─╭●─╭●───────┤ ├State | ||
| 1: ──X────├●─│────────┤ ├State |
Context:
Just because docstrings are in
labsdoesn't mean they shouldn't be CI / CD tested.[sc-121352]