qdk
qdk copied to clipboard
LaTeX state representation in Jupyter
Implement _repr_latex_ as per IPython spec (see https://ipython.readthedocs.io/en/stable/config/integrating.html) so that Jupyter editors can provide the option of displaying the output as LaTeX .
Benchmark for 99e01e5
Click to view benchmark
| Test | Base | PR | % |
|---|---|---|---|
| Array append evaluation | 341.4±2.94µs | 340.4±2.28µs | -0.29% |
| Array literal evaluation | 192.9±2.65µs | 173.8±1.41µs | -9.90% |
| Array update evaluation | 424.8±4.02µs | 422.0±2.45µs | -0.66% |
| Core + Standard library compilation | 17.4±0.43ms | 18.1±1.01ms | +4.02% |
| Deutsch-Jozsa evaluation | 5.1±0.05ms | 5.1±0.04ms | 0.00% |
| Large file parity evaluation | 33.7±0.15ms | 33.8±0.92ms | +0.30% |
| Large input file compilation | 11.8±0.24ms | 11.9±0.35ms | +0.85% |
| Large input file compilation (interpreter) | 47.0±1.43ms | 47.3±1.75ms | +0.64% |
| Large nested iteration | 33.6±0.27ms | 33.3±0.20ms | -0.89% |
| Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1501.6±34.01µs | 1504.7±37.73µs | +0.21% |
| Perform Runtime Capabilities Analysis (RCA) on large file sample | 7.9±0.13ms | 8.2±0.18ms | +3.80% |
| Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1412.3±37.62µs | 1421.0±50.37µs | +0.62% |
| Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | 21.3±0.26ms | 21.8±0.33ms | +2.35% |
| Teleport evaluation | 83.8±4.10µs | 83.0±4.63µs | -0.95% |
Benchmark for 0bf65a4
Click to view benchmark
| Test | Base | PR | % |
|---|---|---|---|
| Array append evaluation | 348.0±4.96µs | 341.8±2.19µs | -1.78% |
| Array literal evaluation | 180.1±2.90µs | 179.3±1.67µs | -0.44% |
| Array update evaluation | 429.1±3.50µs | 423.3±16.92µs | -1.35% |
| Core + Standard library compilation | 16.9±0.49ms | 16.8±0.11ms | -0.59% |
| Deutsch-Jozsa evaluation | 5.2±0.08ms | 5.1±0.10ms | -1.92% |
| Large file parity evaluation | 33.9±0.13ms | 33.8±0.09ms | -0.29% |
| Large input file compilation | 11.3±0.20ms | 11.2±0.13ms | -0.88% |
| Large input file compilation (interpreter) | 43.6±1.02ms | 43.4±1.03ms | -0.46% |
| Large nested iteration | 33.9±0.22ms | 33.3±0.34ms | -1.77% |
| Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1471.2±26.36µs | 1480.7±32.94µs | +0.65% |
| Perform Runtime Capabilities Analysis (RCA) on large file sample | 7.6±0.11ms | 7.6±0.08ms | 0.00% |
| Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1393.8±31.86µs | 1397.4±39.65µs | +0.26% |
| Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | 20.2±0.74ms | 20.1±0.11ms | -0.50% |
| Teleport evaluation | 88.5±4.09µs | 88.8±3.33µs | +0.34% |
Benchmark for f228f4e
Click to view benchmark
| Test | Base | PR | % |
|---|---|---|---|
| Array append evaluation | 353.1±2.31µs | 344.2±4.33µs | -2.52% |
| Array literal evaluation | 182.6±2.20µs | 199.0±1.78µs | +8.98% |
| Array update evaluation | 438.2±1.59µs | 425.1±2.11µs | -2.99% |
| Core + Standard library compilation | 18.5±1.08ms | 17.1±0.58ms | -7.57% |
| Deutsch-Jozsa evaluation | 5.1±0.04ms | 5.1±0.05ms | 0.00% |
| Large file parity evaluation | 33.8±0.12ms | 33.8±0.13ms | 0.00% |
| Large input file compilation | 11.7±0.28ms | 11.6±0.33ms | -0.85% |
| Large input file compilation (interpreter) | 46.3±1.64ms | 46.1±1.48ms | -0.43% |
| Large nested iteration | 34.7±0.23ms | 33.6±0.26ms | -3.17% |
| Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample | 1481.3±32.72µs | 1485.3±35.07µs | +0.27% |
| Perform Runtime Capabilities Analysis (RCA) on large file sample | 7.6±0.07ms | 7.6±0.07ms | 0.00% |
| Perform Runtime Capabilities Analysis (RCA) on teleport sample | 1401.2±30.09µs | 1399.6±44.88µs | -0.11% |
| Perform Runtime Capabilities Analysis (RCA) on the core and std libraries | 20.3±0.30ms | 20.3±0.57ms | 0.00% |
| Teleport evaluation | 88.1±3.66µs | 88.6±3.76µs | +0.57% |