microsoft / qsharp

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

Multi-Qubit Measurements: move code example out of details tag #1631

Closed tcNickolas closed 2 weeks ago

tcNickolas commented 2 weeks ago

This includes modifying the state used in the first Analyze exercise to match the state in the second exercise, and changing the code example to solve both exercises.

github-actions[bot] commented 2 weeks ago

Benchmark for 8faa025

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | Array append evaluation | 320.0±7.47µs | 319.7±7.47µs | -0.09% | | Array literal evaluation | 183.5±4.66µs | 185.1±5.07µs | +0.87% | | Array update evaluation | 399.5±9.47µs | 403.6±7.11µs | +1.03% | | Core + Standard library compilation | 17.7±0.43ms | 17.9±0.45ms | +1.13% | | Deutsch-Jozsa evaluation | 4.9±0.13ms | 5.0±0.19ms | +2.04% | | Large file parity evaluation | 32.9±0.74ms | 33.2±0.64ms | +0.91% | | Large input file compilation | 12.0±0.28ms | **11.6±0.27ms** | **-3.33%** | | Large input file compilation (interpreter) | 44.9±1.08ms | 43.9±1.16ms | -2.23% | | Large nested iteration | 32.1±0.65ms | 31.6±0.76ms | -1.56% | | Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1527.9±53.36µs | 1529.1±50.12µs | +0.08% | | Perform Runtime Capabilities Analysis (RCA) on large file sample | 7.4±0.20ms | 7.5±0.20ms | +1.35% | | Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1391.9±44.08µs | 1396.6±50.29µs | +0.34% | | Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | 27.6±0.63ms | 27.4±0.73ms | -0.72% | | Teleport evaluation | 86.0±4.60µs | 88.9±4.16µs | +3.37% |