boschmitt / tweedledum

C++17 Library for analysis, compilation/synthesis, and optimization of quantum circuits
MIT License
97 stars 35 forks source link

Improve testing for mapping #150

Closed boschmitt closed 3 years ago

boschmitt commented 3 years ago

Description

This PR substantially improves the testing for mapping and mapping+resynth

codecov-commenter commented 3 years ago

Codecov Report

Merging #150 (197fccf) into master (c5d3b05) will increase coverage by 28.31%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #150       +/-   ##
===========================================
+ Coverage   44.86%   73.17%   +28.31%     
===========================================
  Files          45       86       +41     
  Lines        1197     4392     +3195     
===========================================
+ Hits          537     3214     +2677     
- Misses        660     1178      +518     
Impacted Files Coverage Δ
include/tweedledum/IR/Circuit.h 26.96% <0.00%> (-29.38%) :arrow_down:
include/tweedledum/IR/Qubit.h 0.00% <0.00%> (-7.70%) :arrow_down:
include/tweedledum/Target/Device.h 46.56% <0.00%> (-0.55%) :arrow_down:
include/tweedledum/IR/Cbit.h 0.00% <0.00%> (ø)
include/tweedledum/Target/Mapping.h 0.00% <0.00%> (ø)
include/tweedledum/Operators/Extension/Unitary.h 0.00% <0.00%> (ø)
...lude/tweedledum/Passes/Utility/shallow_duplicate.h 0.00% <0.00%> (ø)
...de/tweedledum/Passes/Mapping/Placer/RandomPlacer.h 100.00% <0.00%> (ø)
include/tweedledum/IR/Wire.h
src/Passes/Mapping/RePlacer/JitRePlacer.cpp 72.28% <0.00%> (ø)
... and 45 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 c5d3b05...197fccf. Read the comment docs.