microsoft / qsharp

Azure Quantum Development Kit, including the Q# programming language, resource estimator, and Quantum Katas
https://microsoft.github.io/qsharp/
MIT License
427 stars 86 forks source link

Add `--debug` flag to qsi for testing #1531

Closed swernli closed 4 months ago

swernli commented 4 months ago

This adds a --debug flag to qsi that will make it load the interpreter with debug settings. That will make certain testing easier.

github-actions[bot] commented 4 months ago

Benchmark for 593c5ea

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | Array append evaluation | 325.0±1.39µs | 325.0±2.22µs | 0.00% | | Array literal evaluation | 174.4±1.32µs | 174.9±2.04µs | +0.29% | | Array update evaluation | 405.0±2.23µs | 405.5±2.19µs | +0.12% | | Core + Standard library compilation | 20.3±1.07ms | 19.9±0.52ms | -1.97% | | Deutsch-Jozsa evaluation | **5.0±0.09ms** | 5.1±0.20ms | **+2.00%** | | Large file parity evaluation | 34.1±0.08ms | 34.1±0.10ms | 0.00% | | Large input file compilation | **13.6±0.50ms** | 14.3±0.50ms | **+5.15%** | | Large input file compilation (interpreter) | 50.2±1.71ms | 51.1±1.66ms | +1.79% | | Large nested iteration | 32.2±0.38ms | 32.5±0.45ms | +0.93% | | Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1627.8±154.85µs | 1642.6±179.92µs | +0.91% | | Perform Runtime Capabilities Analysis (RCA) on large file sample | 8.3±0.12ms | 8.3±0.11ms | 0.00% | | Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1486.7±164.24µs | 1506.3±168.21µs | +1.32% | | Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | **28.3±0.48ms** | 28.9±0.76ms | **+2.12%** | | Teleport evaluation | 87.7±3.91µs | 88.6±4.03µs | +1.03% |