Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samples for resource estimation of Lattice Model simulation circuits #1067

Merged
merged 20 commits into from
Jan 24, 2024

Conversation

aarthims
Copy link
Contributor

This change adds three Python+Q# Jupyter notebooks that perform resource estimation for simulating (i) a 2D Ising Model; (ii) a 2D Heisenberg Model; and (iii) a 2D Hubbard Model.

The change also removes the Dynamics.qs file which is outdated with respect to the new 2D Ising model notebook.

Copy link

Benchmark for 0c100ec

Click to view benchmark
Test Base PR %
Array append evaluation 865.1±26.07µs 863.7±8.79µs -0.16%
Array update evaluation 932.8±6.08µs 934.6±8.49µs +0.19%
Deutsch-Jozsa evaluation 31.3±0.22ms 31.3±0.38ms 0.00%
Large file parity evaluation 36.0±0.18ms 36.1±0.72ms +0.28%
Large input file 39.4±0.58ms 38.8±0.63ms -1.52%
Standard library 21.9±0.28ms 21.2±0.40ms -3.20%
Teleport evaluation 102.4±2.08µs 103.7±4.58µs +1.27%

@tcNickolas
Copy link
Member

Dynamics.qs was used by https://github.com/microsoft/qsharp/blob/main/samples/estimation/estimation-frontier-widgets.ipynb so we want to also figure out what to do with that

@aarthims
Copy link
Contributor Author

With newest commits, the change replaces the old Dynamics.qs file with updated code to execute the same sample.

Copy link

Benchmark for 40deefd

Click to view benchmark
Test Base PR %
Array append evaluation 860.6±8.66µs 858.9±6.37µs -0.20%
Array update evaluation 933.0±8.38µs 938.5±25.21µs +0.59%
Deutsch-Jozsa evaluation 31.4±0.31ms 31.3±0.56ms -0.32%
Large file parity evaluation 36.0±0.34ms 36.0±0.31ms 0.00%
Large input file 37.5±0.62ms 37.6±0.52ms +0.27%
Standard library 20.9±0.33ms 20.7±0.26ms -0.96%
Teleport evaluation 103.7±1.74µs 104.3±1.89µs +0.58%

Copy link

Benchmark for 248f56f

Click to view benchmark
Test Base PR %
Array append evaluation 876.2±15.51µs 856.4±4.61µs -2.26%
Array update evaluation 949.2±4.14µs 932.5±4.99µs -1.76%
Deutsch-Jozsa evaluation 31.8±0.94ms 31.3±1.00ms -1.57%
Large file parity evaluation 36.0±0.15ms 36.0±1.19ms 0.00%
Large input file 38.1±1.80ms 37.8±0.63ms -0.79%
Standard library 20.8±0.21ms 21.0±1.14ms +0.96%
Teleport evaluation 103.9±1.36µs 102.2±1.90µs -1.64%

@swernli swernli added this pull request to the merge queue Jan 24, 2024
Merged via the queue into main with commit 94a7712 Jan 24, 2024
14 checks passed
@swernli swernli deleted the aameenak/lattice-model-samples branch January 24, 2024 20:10
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.

None yet

3 participants