QuantumBFS / ZXCalculus.jl

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

Improve phase teleportation #58

Closed ChenZhao44 closed 3 years ago

ChenZhao44 commented 3 years ago

Try to find out the reason for the higher T-count in phase teleportation. Still working. Please do not merge!

codecov[bot] commented 3 years ago

Codecov Report

Merging #58 into master will increase coverage by 0.03%. The diff coverage is 97.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #58      +/-   ##
==========================================
+ Coverage   89.43%   89.47%   +0.03%     
==========================================
  Files          14       14              
  Lines        1534     1558      +24     
==========================================
+ Hits         1372     1394      +22     
- Misses        162      164       +2     
Impacted Files Coverage Δ
src/phase_teleportation.jl 100.00% <ø> (ø)
src/simplify.jl 95.23% <80.00%> (-4.77%) :arrow_down:
src/rules.jl 95.94% <100.00%> (+0.17%) :arrow_up:
src/zx_graph.jl 92.22% <100.00%> (-0.56%) :arrow_down:

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 31be9ef...4ccf80a. Read the comment docs.

ChenZhao44 commented 3 years ago

Applying Rule p2 and p3 on the boundary spiders may generate untrackable spiders. And it will cause phase teleportation to fail. So I stopped working on it. This branch is ready to be merged now. @Roger-luo