QuantumBFS / Yao.jl

Extensible, Efficient Quantum Algorithm Design for Humans.
https://yaoquantum.org
Other
924 stars 122 forks source link

Fix Yao Blocks #402

Closed GiggleLiu closed 2 years ago

GiggleLiu commented 2 years ago

fix docstrings and a fallback

codecov[bot] commented 2 years ago

Codecov Report

Merging #402 (e44603d) into master (b8a0cb2) will increase coverage by 0.18%. The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master     #402      +/-   ##
==========================================
+ Coverage   89.16%   89.34%   +0.18%     
==========================================
  Files          73       73              
  Lines        4449     4450       +1     
==========================================
+ Hits         3967     3976       +9     
+ Misses        482      474       -8     
Impacted Files Coverage Δ
lib/YaoBlocks/src/composite/chain.jl 95.41% <ø> (ø)
lib/YaoBlocks/src/composite/control.jl 97.95% <ø> (ø)
lib/YaoBlocks/src/composite/kron.jl 95.12% <ø> (ø)
lib/YaoBlocks/src/composite/put_block.jl 100.00% <ø> (ø)
lib/YaoBlocks/src/composite/unitary_channel.jl 100.00% <ø> (ø)
lib/YaoBlocks/src/primitive/rotation_gate.jl 96.07% <ø> (ø)
lib/YaoBlocks/src/primitive/shift_gate.jl 90.00% <ø> (ø)
lib/YaoBlocks/src/primitive/time_evolution.jl 94.33% <ø> (ø)
lib/YaoBlocks/src/routines.jl 96.00% <66.66%> (+0.01%) :arrow_up:
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b8a0cb2...e44603d. Read the comment docs.

GiggleLiu commented 2 years ago

This PR fixes multiple docstring and a corner case of method dispatch. I need to get this PR merged to master so that people won't be confused. We'd better tag a patch version later. Can you check if these changes are correct later? @Roger-luo