Skip to content

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Sep 3, 2025

This change updates to the latest sparse simulator, which includes performance improvements. The change also adds a new benchmark taken from the old qsharp-runtime repo to help with evaluating simulator updates on a more complex program.

Here are how the execution benchmarks (including the new one) change with the latest simulator:
image
Smaller programs like Teleport receive a minor boost, slightly bigger programs like Deutsch-Jozsa get a bigger boost, and the new benchmark shows a significant improvement. Certain programs like the Large File Parity sample incurr a small penalty, but the trade-offs seem well worthwhile.

For very large programs, like the Ising samples on 25 qubits, this has shown significant performance boost, taking only 25% of the time after update.

This adds an old benchmark from the legacy QDK, ported to the latest syntax and the current repo's criterion-based benchmarking. Helps show the behavior of the simulator on medium-sized programs with more entanglement.
@swernli swernli enabled auto-merge September 3, 2025 21:23
@swernli swernli added this pull request to the merge queue Sep 3, 2025
Merged via the queue into main with commit 5305156 Sep 3, 2025
18 checks passed
@swernli swernli deleted the swernli/update-sim-new-bench branch September 3, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants