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

Respect configured target profile for histogram in VS Code #1565

Merged
merged 1 commit into from
May 23, 2024

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented May 23, 2024

This updates the call to run to that is used by the histogram feature to take the current target profile, such that histograms in the VS Code extension correctly compile the code with the configured target.

This updates the call to `run` to that is used by the histogram feature to take the current target profile, such that histograms in the VS Code extension correctly compile the code with the configured target.
Copy link

Benchmark for e2e8605

Click to view benchmark
Test Base PR %
Array append evaluation 337.6±5.54µs 326.0±1.80µs -3.44%
Array literal evaluation 193.4±0.77µs 191.5±2.95µs -0.98%
Array update evaluation 418.7±5.00µs 409.7±1.99µs -2.15%
Core + Standard library compilation 23.2±2.04ms 22.6±1.51ms -2.59%
Deutsch-Jozsa evaluation 5.1±0.05ms 5.1±0.06ms 0.00%
Large file parity evaluation 34.1±0.09ms 34.3±0.64ms +0.59%
Large input file compilation 15.0±1.10ms 15.2±0.86ms +1.33%
Large input file compilation (interpreter) 52.0±2.44ms 52.6±1.94ms +1.15%
Large nested iteration 33.9±2.42ms 32.5±0.19ms -4.13%
Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample 1657.7±228.90µs 1668.4±180.34µs +0.65%
Perform Runtime Capabilities Analysis (RCA) on large file sample 8.3±0.27ms 8.3±0.24ms 0.00%
Perform Runtime Capabilities Analysis (RCA) on teleport sample 1434.8±46.41µs 1497.6±138.06µs +4.38%
Perform Runtime Capabilities Analysis (RCA) on the core and std libraries 28.8±0.59ms 28.9±0.46ms +0.35%
Teleport evaluation 89.2±4.73µs 89.8±3.77µs +0.67%

@swernli swernli added this pull request to the merge queue May 23, 2024
Merged via the queue into main with commit cfab56c May 23, 2024
16 checks passed
@swernli swernli deleted the swernli/histogram-respects-target branch May 23, 2024 22:51
github-merge-queue bot pushed a commit that referenced this pull request Jun 19, 2024
This is in preparation for the package work, but I think it's a useful
refactor in its own right. No behavior changes.

There are quite a few features/commands across the VS Code extension*
that are meant to operate on the "currently active Q# project". This is
defined as the Q# document in the currently active editor, and if that
document is associated with a qsharp.json, the entire project.

This code was duplicated across all these commands, and was slightly
different everywhere. There have been bugs where we weren't respecting
some of the common settings (e.g. #1565) and changes where we had to
update each command separately if we changed something about project
semantics (e.g. #1089, #918) . This PR aims to unify all that so we
touch fewer places when we change something about the project compiler
configuration logic.

*Run, Debug, Circuit, Estimate, Histogram commands, Show Documentation,
Get QIR and Submit to Azure.
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