Ran
|
Files
164
|
Run time
18s
|
Badge
README BADGES
|
push
travis-ci
<a href="https://github.com/ProjectQ-Framework/ProjectQ/commit/<a class=hub.com/ProjectQ-Framework/ProjectQ/commit/f27286f520ff8b1ca2dec9142b01b59a2490fcd5">f27286f52<a href="https://github.com/ProjectQ-Framework/ProjectQ/commit/f27286f520ff8b1ca2dec9142b01b59a2490fcd5">">C++ simulator performance improvements (#329) * C++ simulator performance: make the swap-gate run in native C++ It was defined as a BasicMathGate before which made it run as python code through the emulate_math_wrapper. The new variant just uses its matrix representation to run it in native code. * C++ simulator performance: add dedicated C++ code for common math gates The BasicMathGate uses a C++ python wrapper (emulate_math_wrapper) to allow generic calculations which makes it very slow. This detects some math gates and provides a native C++ implementation for it. * C++ simulator performance: use larger memory alignment * C++ simulator performance: recycle large StateVector memory buffers This avoids costly std::vector copying/reallocations by using some static std::vector to reuse the allocated buffer (just by std::swap&#39;ing a vector into a buffer for later use when it would be deallocated otherwise). * C++ simulator performance: improve compiler flags * Add test coverage for constant math emulation * Revert &quot;Add test coverage for constant math emulation" This reverts commit </a><a class="double-link" href="https://github.com/ProjectQ-Framework/ProjectQ/commit/<a class="double-link" href="https://github.com/ProjectQ-Framework/ProjectQ/commit/3bb8a2cc7fd595db48b0f4d260124ccfe60d7fcf">3bb8a2cc7</a>">3bb8a2cc7</a><a href="https://github.com/ProjectQ-Framework/ProjectQ/commit/f27286f520ff8b1ca2dec9142b01b59a2490fcd5">. * Add test coverage for constant math emulation
12214 of 12261 relevant lines covered (99.62%)
1.0 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|