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

Option to load custom RE parameters in DF chemistry sample #1662

Closed msoeken closed 2 days ago

msoeken commented 4 days ago

This adds a program argument -p (long --paramsfile) to the Python script of the DF chemistry sample to have the option to load one or multiple RE configurations that are stored as objects or arrays in JSON files. If no such argument is specified, the default configuration is used as before.

This addresses the second bullet point in #1115.

github-actions[bot] commented 4 days ago

Benchmark for f9a68d3

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | Array append evaluation | 331.0±3.60µs | **328.8±1.79µs** | **-0.66%** | | Array literal evaluation | 198.6±0.83µs | **181.9±7.59µs** | **-8.41%** | | Array update evaluation | 414.2±11.15µs | 412.4±10.60µs | -0.43% | | Core + Standard library compilation | **21.5±0.94ms** | 22.7±1.05ms | **+5.58%** | | Deutsch-Jozsa evaluation | 5.1±0.04ms | 5.1±0.08ms | 0.00% | | Large file parity evaluation | **34.0±0.06ms** | 34.2±0.88ms | **+0.59%** | | Large input file compilation | 13.3±0.54ms | 13.8±0.57ms | +3.76% | | Large input file compilation (interpreter) | 52.4±2.12ms | 53.8±1.98ms | +2.67% | | Large nested iteration | 32.2±1.08ms | 32.2±1.03ms | 0.00% | | Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1587.3±68.70µs | 1573.6±34.17µs | -0.86% | | Perform Runtime Capabilities Analysis (RCA) on large file sample | 8.0±0.16ms | 7.9±0.16ms | -1.25% | | Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1451.4±75.10µs | 1435.2±55.77µs | -1.12% | | Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | 28.3±0.28ms | 28.4±0.53ms | +0.35% | | Teleport evaluation | 90.5±3.68µs | 90.3±3.81µs | -0.22% |