microsoft / qsharp

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

Move Span methods in qsc_utils to Span impl #1588

Closed orpuente-MS closed 4 months ago

orpuente-MS commented 4 months ago

This PR just moves things around. It moves the span_contains and span_touches methods in qsc_utils to impl Span { ... }.

github-actions[bot] commented 4 months ago

Benchmark for 6e836eb

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | Array append evaluation | 337.7±8.44µs | **333.1±3.84µs** | **-1.36%** | | Array literal evaluation | 188.9±16.12µs | **186.7±1.18µs** | **-1.16%** | | Array update evaluation | 416.9±6.73µs | **411.8±2.02µs** | **-1.22%** | | Core + Standard library compilation | **18.8±0.61ms** | 20.8±1.10ms | **+10.64%** | | Deutsch-Jozsa evaluation | **5.2±0.05ms** | 5.3±0.07ms | **+1.92%** | | Large file parity evaluation | 34.1±1.27ms | 34.0±0.28ms | -0.29% | | Large input file compilation | **12.7±0.36ms** | 13.9±0.46ms | **+9.45%** | | Large input file compilation (interpreter) | 50.1±0.87ms | 49.5±1.16ms | -1.20% | | Large nested iteration | 33.1±1.09ms | 33.2±0.44ms | +0.30% | | Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1572.9±83.58µs | 1606.8±121.83µs | +2.16% | | Perform Runtime Capabilities Analysis (RCA) on large file sample | **7.7±0.19ms** | 8.2±0.14ms | **+6.49%** | | Perform Runtime Capabilities Analysis (RCA) on teleport sample | **1419.7±27.81µs** | 1455.3±87.19µs | **+2.51%** | | Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | **28.4±0.24ms** | 28.7±0.34ms | **+1.06%** | | Teleport evaluation | 92.4±4.16µs | 90.8±4.83µs | -1.73% |