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

Partial evaluation support for exponentiation #1541

Closed cesarzc closed 1 month ago

cesarzc commented 1 month ago

This change implements partial evaluation support for exponentiation.

github-actions[bot] commented 1 month ago

Benchmark for 7953459

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | Array append evaluation | **334.7±1.56µs** | 337.2±2.62µs | **+0.75%** | | Array literal evaluation | 192.6±6.09µs | 191.9±2.32µs | -0.36% | | Array update evaluation | **414.6±1.50µs** | 416.5±1.82µs | **+0.46%** | | Core + Standard library compilation | 21.1±1.13ms | **18.8±1.06ms** | **-10.90%** | | Deutsch-Jozsa evaluation | 5.1±0.06ms | 5.1±0.06ms | 0.00% | | Large file parity evaluation | **34.2±0.09ms** | 34.3±0.63ms | **+0.29%** | | Large input file compilation | 13.4±0.64ms | 12.8±0.61ms | -4.48% | | Large input file compilation (interpreter) | 51.6±2.93ms | **47.3±2.10ms** | **-8.33%** | | Large nested iteration | **32.9±0.19ms** | 33.3±1.03ms | **+1.22%** | | Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1608.1±118.47µs | 1574.7±56.22µs | -2.08% | | Perform Runtime Capabilities Analysis (RCA) on large file sample | 7.9±0.25ms | **7.6±0.17ms** | **-3.80%** | | Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1430.6±35.30µs | 1442.5±92.49µs | +0.83% | | Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | 27.9±0.42ms | **27.4±0.38ms** | **-1.79%** | | Teleport evaluation | 90.9±3.85µs | 89.3±4.27µs | -1.76% |