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
15 stars 8 forks source link

Fix operation call return #38

Closed thisac closed 1 year ago

thisac commented 1 year ago

Updates the Operation.__call__ method (and subclass methods) to return the called operation. This should be expected since calling an operation instance should be the same as applying an operation via the class initialization.

codecov[bot] commented 1 year ago

Codecov Report

Merging #38 (4e44a21) into master (bcc2140) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #38   +/-   ##
=======================================
  Coverage   99.87%   99.87%           
=======================================
  Files          18       18           
  Lines        1559     1563    +4     
  Branches      263      263           
=======================================
+ Hits         1557     1561    +4     
  Misses          1        1           
  Partials        1        1           
Impacted Files Coverage Δ
dwave/gate/operations/base.py 100.00% <100.00%> (ø)

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