dwavesystems / dwave-gate

dwave-gate is a software package for constructing, modifying and running quantum circuits on the provided state-vector simulator.
Apache License 2.0
12 stars 7 forks source link

Fix QIR load mid-function return #40

Closed thisac closed 11 months ago

thisac commented 11 months ago

Fixes a bug where a return statement in a block which is not the last block of the function is ignored. This fix causes a function to be terminated upon any encountering any ret instruction.

codecov[bot] commented 11 months ago

Codecov Report

Merging #40 (98d7609) into master (298d1df) will increase coverage by 0.12%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master       #40      +/-   ##
===========================================
+ Coverage   99.87%   100.00%   +0.12%     
===========================================
  Files          18        18              
  Lines        1563      1567       +4     
  Branches      263       264       +1     
===========================================
+ Hits         1561      1567       +6     
+ Misses          1         0       -1     
+ Partials        1         0       -1     
Impacted Files Coverage Δ
dwave/gate/qir/loader.py 100.00% <100.00%> (+2.70%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more