QuantumBFS / ZXCalculus.jl

An implementation of ZX-calculus in Julia
http://yaoquantum.org/ZXCalculus.jl/dev/
MIT License
47 stars 7 forks source link

Add new features in QCircuit and fix circuit extraction #63

Closed ChenZhao44 closed 3 years ago

ChenZhao44 commented 3 years ago

Add new features in QCircuit: adjoint, vcat, getindex Bug fixed:

  1. wrong conversion from ZXDiagram to QCircuit
  2. fix the wrong way to add edges in circuit extraction (maybe cause the permutation matrix in the final step unavailable)
codecov[bot] commented 3 years ago

Codecov Report

Merging #63 into master will decrease coverage by 0.37%. The diff coverage is 58.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #63      +/-   ##
==========================================
- Coverage   89.26%   88.88%   -0.38%     
==========================================
  Files          10       10              
  Lines        1360     1386      +26     
==========================================
+ Hits         1214     1232      +18     
- Misses        146      154       +8     
Impacted Files Coverage Δ
src/circuit_extraction.jl 75.31% <30.00%> (-0.97%) :arrow_down:
src/qcircuit.jl 73.78% <69.23%> (+0.16%) :arrow_up:
src/abstract_zx_diagram.jl 0.00% <0.00%> (-6.67%) :arrow_down:
src/rules.jl 96.13% <0.00%> (+0.19%) :arrow_up:

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 7cc2b1c...0941900. Read the comment docs.