Ran
|
Jobs
4
|
Files
164
|
Run time
1min
|
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
54 of 54 new or added lines in 3 files covered. (100.0%)
12237 of 12261 relevant lines covered (99.8%)
3.99 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
3 |
96.3 |
-2.08% | projectq/backends/_sim/_simulator.py |
6 |
98.52 |
-1.08% | projectq/backends/_sim/_simulator_test.py |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 1341.1 (CC=gcc-4.9 CXX=g++-4.9 PYTHON=2.7) | 164 |
99.62 |
Travis Job 1341.1 | |
2 | 1341.2 (CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.4) | 164 |
99.8 |
Travis Job 1341.2 | |
3 | 1341.3 (CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.5) | 164 |
99.79 |
Travis Job 1341.3 | |
4 | 1341.4 (CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.6) | 164 |
99.79 |
Travis Job 1341.4 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|