Closed GiggleLiu closed 4 months ago
Attention: Patch coverage is 96.87500%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 88.31%. Comparing base (
e17a32b
) to head (430123e
). Report is 6 commits behind head on master.:exclamation: Current head 430123e differs from pull request most recent head f70f095. Consider uploading reports for the commit f70f095 to get more accurate results
Files | Patch % | Lines |
---|---|---|
lib/YaoBlocks/src/utils.jl | 80.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I think this PR should be merged. Automatic differentiating complex numbers does not make sense.
fix #432
Change List
sandwich
in YaoBlocks for computing<bra| op |ket>
.expect
function now returns real and errors on complex values.<bra| * |ket>
now returns a number, and throws an error if the qubit number does not match.Fixes the type stability issue
Examples
Note
For
expect(O1 + O2, reg)
, the code is still type unstable, this is due to theAdd
block contains a vector of abstract type.