GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Compensated summation for cpu_statevec_anyCtrlAnyTargDenseMatr_sub (#598) - [unitaryHACK] by mk0dz · Pull Request #791 · QuEST-Kit/QuEST ConversationSummaryAdds an optional compensated-summation path to improve numerical accuracy in CPU dense-matrix target evolution. The implementation introduces a thinner reduction in -DQUEST_COMPENSATED_DENSEMAT_SUM=ON The feature is disabled by default to preserve existing performance characteristics. Implementation Notes
Files Changed
Accuracy & PerformanceBenchmarked against a
Observations
ValidationAll existing dense
Test results:
Rationale for Default-OffThe improvement is primarily beneficial for large or ill-conditioned matrices, while introducing a consistent ~2–3× runtime overhead. Keeping the feature disabled by default preserves current performance expectations while allowing users to opt in when higher numerical accuracy is required. Future WorkA possible alternative is pairwise summation, which offers:
This can be evaluated separately in a future PR. I also acknowledge claude for guiding me thorough it. /claim #598 Closes #598.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…uEST-Kit#598) The dense-matrix subroutine's inner reduction is liable to catastrophic cancellation for many target qubits. This adds an opt-in compensated path (-DQUEST_COMPENSATE_DENSEMATR_SUM=ON); base_qcomp's operators are plain IEEE arithmetic so the compensation is honoured directly. Single-CPU benchmarks (fp32/fp64/fp80): relative error improves ~25-58x at 12 targets, the benefit growing with target count; runtime cost is ~2-3.3x (compute-bound) falling to ~1.8x in the large-statevector regime. Left opt-in (off by default) per that trade-off.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This was referenced
Closed
This branch has not been deployedNo deployments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |