microsoft / qsharp

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

Adaptive quantum computing notebook samples #1614

Closed cesarzc closed 3 weeks ago

cesarzc commented 3 weeks ago

This change introduces two notebook samples that demonstrate adaptive quantum programs:

github-actions[bot] commented 3 weeks ago

Benchmark for 8f330a9

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | Array append evaluation | 337.3±2.93µs | **333.4±5.88µs** | **-1.16%** | | Array literal evaluation | 171.0±0.92µs | 170.8±1.49µs | -0.12% | | Array update evaluation | 414.8±0.88µs | **410.3±1.96µs** | **-1.08%** | | Core + Standard library compilation | **20.1±0.46ms** | 20.7±0.82ms | **+2.99%** | | Deutsch-Jozsa evaluation | 5.0±0.06ms | 5.0±0.05ms | 0.00% | | Large file parity evaluation | 34.3±1.00ms | 34.2±0.32ms | -0.29% | | Large input file compilation | 13.2±0.34ms | 13.3±0.49ms | +0.76% | | Large input file compilation (interpreter) | **49.6±0.99ms** | 50.7±1.32ms | **+2.22%** | | Large nested iteration | 33.3±0.09ms | **33.0±0.21ms** | **-0.90%** | | Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1613.1±112.60µs | 1608.7±112.92µs | -0.27% | | Perform Runtime Capabilities Analysis (RCA) on large file sample | **7.9±0.09ms** | 8.0±0.12ms | **+1.27%** | | Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1451.2±117.30µs | 1475.0±175.34µs | +1.64% | | Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | **28.8±0.23ms** | 29.2±0.26ms | **+1.39%** | | Teleport evaluation | 87.7±3.59µs | 88.4±3.88µs | +0.80% |
swernli commented 3 weeks ago

Thanks for getting these updated! I'll review the text soon. There's one detail about the integration tests: they automatically execute notebooks in the folder unless they are on a list of notebooks to skip. Since these includes submission to the service they aren't expected to run e2e in CI and can be added to that skip list. See line 453-457 in build.py.

github-actions[bot] commented 3 weeks ago

Benchmark for f91ffbe

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | Array append evaluation | **331.5±2.03µs** | 340.8±1.20µs | **+2.81%** | | Array literal evaluation | **170.8±1.17µs** | 185.6±15.08µs | **+8.67%** | | Array update evaluation | **409.7±2.98µs** | 422.8±2.03µs | **+3.20%** | | Core + Standard library compilation | **20.3±0.50ms** | 21.4±0.85ms | **+5.42%** | | Deutsch-Jozsa evaluation | **5.0±0.04ms** | 5.1±0.03ms | **+2.00%** | | Large file parity evaluation | **34.1±0.08ms** | 34.3±0.33ms | **+0.59%** | | Large input file compilation | 13.7±0.44ms | **13.3±0.33ms** | **-2.92%** | | Large input file compilation (interpreter) | 50.8±1.39ms | 51.4±1.37ms | +1.18% | | Large nested iteration | **32.8±2.03ms** | 33.9±0.57ms | **+3.35%** | | Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1605.2±133.16µs | 1604.5±140.55µs | -0.04% | | Perform Runtime Capabilities Analysis (RCA) on large file sample | 8.0±0.10ms | 8.0±0.17ms | 0.00% | | Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1454.2±80.67µs | 1459.0±144.21µs | +0.33% | | Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | 28.8±0.91ms | 28.9±0.32ms | +0.35% | | Teleport evaluation | 87.2±3.80µs | 87.8±4.06µs | +0.69% |