QuantumSavory / QuantumSavory.jl

A full stack simulator of quantum hardware, from the low-level analog physics to high-level network dynamics. Includes discrete event simulator, symbolic representation for quantum object, and works with many backend simulators.
https://quantumsavory.github.io/QuantumSavory.jl/
MIT License
30 stars 11 forks source link

EntanglementConsumer #86

Closed ba2tro closed 5 months ago

ba2tro commented 8 months ago

EntanglementConsumer protocol for network simulations. Currently it uses query and untag and we empty the qubits manually by zeroing the stateindices and setting the staterefs to nothing for the slots, just for initial testing

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 82.60870% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 71.34%. Comparing base (3fc5540) to head (461ac46).

Files Patch % Lines
src/ProtocolZoo/ProtocolZoo.jl 75.75% 8 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #86 +/- ## ========================================== + Coverage 71.33% 71.34% +0.01% ========================================== Files 37 37 Lines 1493 1525 +32 ========================================== + Hits 1065 1088 +23 - Misses 428 437 +9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ba2tro commented 7 months ago

With the query specification as fifo, we don't have issues with outdated history tags and we can run Entangler and Swapper for infinite rounds. But a new issue comes out of this, where we have deadlock in the network due to a leftward node (say, node 2) having all its slots entangled with a single or multiple nodes only in the right(3, 4,...). This way, no swap can occur since we need a node in the left and one in the right to do a swap. Neither is it able to generate new entanglement with nodes on left since its slots can't be freed from entanglement with right nodes due to no swaps. If you check the log in buildkite, the end is all about entanglement attempts failing

Krastanov commented 7 months ago

Tests seem to be failing -- could you fix that? It makes reviewing much faster if the tests pass/

If it is because of a ton of noise in the logs due to warnings from SumTypes, you can add the same addition you had in #92

Krastanov commented 7 months ago

The FIFO/FILO changes look good. I have not looked into the consumer in detail yet.

github-actions[bot] commented 7 months ago
Benchmark Result # Judge result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmarks: - Target: 2 Feb 2024 - 00:15 - Baseline: 2 Feb 2024 - 00:16 * Package commits: - Target: f52a27 - Baseline: 23da67 * Julia commits: - Target: 6e7db1 - Baseline: 6e7db1 * Julia command flags: - Target: None - Baseline: None * Environment variables: - Target: None - Baseline: None ## Results A ratio greater than `1.0` denotes a possible regression (marked with :x:), while a ratio less than `1.0` denotes a possible improvement (marked with :white_check_mark:). Only significant results - results that indicate possible regressions or improvements - are shown below (thus, an empty table means that all benchmark results remained invariant between builds). | ID | time ratio | memory ratio | |-------------------------------------------------------------|---------------|---------------| | `["register", "creation_and_initialization", "from_tests"]` | 1.13 (5%) :x: | 1.00 (1%) | | `["tagquery", "misc", "from_tests"]` | 2.03 (5%) :x: | 1.66 (1%) :x: | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ### Target ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 3026 MHz 3613 s 0 s 250 s 2882 s 0 s #2 3231 MHz 4003 s 0 s 276 s 2465 s 0 s #3 3241 MHz 3420 s 0 s 264 s 3059 s 0 s #4 2841 MHz 3602 s 0 s 236 s 2890 s 0 s Memory: 15.60690689086914 GB (13528.65625 MB free) Uptime: 677.52 sec Load Avg: 1.24 2.12 1.48 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` ### Baseline ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 3901 s 0 s 264 s 3346 s 0 s #2 2611 MHz 4285 s 0 s 285 s 2941 s 0 s #3 3295 MHz 3556 s 0 s 275 s 3678 s 0 s #4 3242 MHz 3743 s 0 s 244 s 3508 s 0 s Memory: 15.60690689086914 GB (13676.6484375 MB free) Uptime: 754.32 sec Load Avg: 1.17 1.9 1.45 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Target result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmark: 2 Feb 2024 - 0:15 * Package commit: f52a27 * Julia commit: 6e7db1 * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |-------------------------------------------------------------|----------------:|--------:|----------------:|------------:| | `["register", "creation_and_initialization", "from_tests"]` | 201.888 μs (5%) | | 704.48 KiB (1%) | 2454 | | `["tagquery", "misc", "from_tests"]` | 5.915 μs (5%) | | 13.03 KiB (1%) | 295 | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 3026 MHz 3613 s 0 s 250 s 2882 s 0 s #2 3231 MHz 4003 s 0 s 276 s 2465 s 0 s #3 3241 MHz 3420 s 0 s 264 s 3059 s 0 s #4 2841 MHz 3602 s 0 s 236 s 2890 s 0 s Memory: 15.60690689086914 GB (13528.65625 MB free) Uptime: 677.52 sec Load Avg: 1.24 2.12 1.48 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Baseline result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmark: 2 Feb 2024 - 0:16 * Package commit: 23da67 * Julia commit: 6e7db1 * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |-------------------------------------------------------------|----------------:|--------:|----------------:|------------:| | `["register", "creation_and_initialization", "from_tests"]` | 178.473 μs (5%) | | 704.48 KiB (1%) | 2454 | | `["tagquery", "misc", "from_tests"]` | 2.916 μs (5%) | | 7.84 KiB (1%) | 143 | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 3901 s 0 s 264 s 3346 s 0 s #2 2611 MHz 4285 s 0 s 285 s 2941 s 0 s #3 3295 MHz 3556 s 0 s 275 s 3678 s 0 s #4 3242 MHz 3743 s 0 s 244 s 3508 s 0 s Memory: 15.60690689086914 GB (13676.6484375 MB free) Uptime: 754.32 sec Load Avg: 1.17 1.9 1.45 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Runtime information | Runtime Info | | |:--|:--| | BLAS #threads | 2 | | `BLAS.vendor()` | `lbt` | | `Sys.CPU_THREADS` | 4 | `lscpu` output: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 48 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: AuthenticAMD Model name: AMD EPYC 7763 64-Core Processor CPU family: 25 Model: 1 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Stepping: 1 BogoMIPS: 4890.85 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru arat npt nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload umip vaes vpclmulqdq rdpid fsrm Virtualization: AMD-V Hypervisor vendor: Microsoft Virtualization type: full L1d cache: 64 KiB (2 instances) L1i cache: 64 KiB (2 instances) L2 cache: 1 MiB (2 instances) L3 cache: 32 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Mitigation; safe RET, no microcode Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected | Cpu Property | Value | |:------------------ |:---------------------------------------------------------- | | Brand | AMD EPYC 7763 64-Core Processor | | Vendor | :AMD | | Architecture | :Unknown | | Model | Family: 0xaf, Model: 0x01, Stepping: 0x01, Type: 0x00 | | Cores | 16 physical cores, 16 logical cores (on executing CPU) | | | No Hyperthreading hardware capability detected | | Clock Frequencies | Not supported by CPU | | Data Cache | Level 1:3 : (32, 512, 32768) kbytes | | | 64 byte cache line size | | Address Size | 48 bits virtual, 48 bits physical | | SIMD | 256 bit = 32 byte max. SIMD vector size | | Time Stamp Counter | TSC is accessible via `rdtsc` | | | TSC runs at constant rate (invariant from clock frequency) | | Perf. Monitoring | Performance Monitoring Counters (PMC) are not supported | | Hypervisor | Yes, Microsoft |
Benchmark Result # Judge result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmarks: - Target: 2 Feb 2024 - 00:16 - Baseline: 2 Feb 2024 - 00:18 * Package commits: - Target: 6a9f83 - Baseline: 23da67 * Julia commits: - Target: 6e7db1 - Baseline: 6e7db1 * Julia command flags: - Target: None - Baseline: None * Environment variables: - Target: None - Baseline: None ## Results A ratio greater than `1.0` denotes a possible regression (marked with :x:), while a ratio less than `1.0` denotes a possible improvement (marked with :white_check_mark:). Only significant results - results that indicate possible regressions or improvements - are shown below (thus, an empty table means that all benchmark results remained invariant between builds). | ID | time ratio | memory ratio | |-------------------------------------------------------------|---------------|---------------| | `["tagquery", "misc", "from_tests"]` | 2.07 (5%) :x: | 1.66 (1%) :x: | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ### Target ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 3669 s 0 s 232 s 2955 s 0 s #2 3242 MHz 3677 s 0 s 241 s 2946 s 0 s #3 3242 MHz 3746 s 0 s 247 s 2870 s 0 s #4 3269 MHz 3341 s 0 s 254 s 3269 s 0 s Memory: 15.60690689086914 GB (13573.54296875 MB free) Uptime: 689.48 sec Load Avg: 1.25 2.08 1.44 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` ### Baseline ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 4056 s 0 s 240 s 3321 s 0 s #2 2445 MHz 3962 s 0 s 251 s 3412 s 0 s #3 3242 MHz 3842 s 0 s 262 s 3519 s 0 s #4 3239 MHz 3408 s 0 s 260 s 3956 s 0 s Memory: 15.60690689086914 GB (13670.046875 MB free) Uptime: 765.67 sec Load Avg: 1.17 1.87 1.41 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Target result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmark: 2 Feb 2024 - 0:16 * Package commit: 6a9f83 * Julia commit: 6e7db1 * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |-------------------------------------------------------------|----------------:|--------:|----------------:|------------:| | `["register", "creation_and_initialization", "from_tests"]` | 192.299 μs (5%) | | 704.48 KiB (1%) | 2454 | | `["tagquery", "misc", "from_tests"]` | 5.857 μs (5%) | | 13.03 KiB (1%) | 295 | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 3669 s 0 s 232 s 2955 s 0 s #2 3242 MHz 3677 s 0 s 241 s 2946 s 0 s #3 3242 MHz 3746 s 0 s 247 s 2870 s 0 s #4 3269 MHz 3341 s 0 s 254 s 3269 s 0 s Memory: 15.60690689086914 GB (13573.54296875 MB free) Uptime: 689.48 sec Load Avg: 1.25 2.08 1.44 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Baseline result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmark: 2 Feb 2024 - 0:18 * Package commit: 23da67 * Julia commit: 6e7db1 * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |-------------------------------------------------------------|----------------:|--------:|----------------:|------------:| | `["register", "creation_and_initialization", "from_tests"]` | 183.402 μs (5%) | | 704.48 KiB (1%) | 2454 | | `["tagquery", "misc", "from_tests"]` | 2.835 μs (5%) | | 7.84 KiB (1%) | 143 | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ``` Julia Version 1.11.0-DEV.1454 Commit 6e7db14712e (2024-02-01 18:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 4056 s 0 s 240 s 3321 s 0 s #2 2445 MHz 3962 s 0 s 251 s 3412 s 0 s #3 3242 MHz 3842 s 0 s 262 s 3519 s 0 s #4 3239 MHz 3408 s 0 s 260 s 3956 s 0 s Memory: 15.60690689086914 GB (13670.046875 MB free) Uptime: 765.67 sec Load Avg: 1.17 1.87 1.41 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Runtime information | Runtime Info | | |:--|:--| | BLAS #threads | 2 | | `BLAS.vendor()` | `lbt` | | `Sys.CPU_THREADS` | 4 | `lscpu` output: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 48 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: AuthenticAMD Model name: AMD EPYC 7763 64-Core Processor CPU family: 25 Model: 1 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Stepping: 1 BogoMIPS: 4890.86 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru arat npt nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload umip vaes vpclmulqdq rdpid fsrm Virtualization: AMD-V Hypervisor vendor: Microsoft Virtualization type: full L1d cache: 64 KiB (2 instances) L1i cache: 64 KiB (2 instances) L2 cache: 1 MiB (2 instances) L3 cache: 32 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Mitigation; safe RET, no microcode Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected | Cpu Property | Value | |:------------------ |:---------------------------------------------------------- | | Brand | AMD EPYC 7763 64-Core Processor | | Vendor | :AMD | | Architecture | :Unknown | | Model | Family: 0xaf, Model: 0x01, Stepping: 0x01, Type: 0x00 | | Cores | 16 physical cores, 16 logical cores (on executing CPU) | | | No Hyperthreading hardware capability detected | | Clock Frequencies | Not supported by CPU | | Data Cache | Level 1:3 : (32, 512, 32768) kbytes | | | 64 byte cache line size | | Address Size | 48 bits virtual, 48 bits physical | | SIMD | 256 bit = 32 byte max. SIMD vector size | | Time Stamp Counter | TSC is accessible via `rdtsc` | | | TSC runs at constant rate (invariant from clock frequency) | | Perf. Monitoring | Performance Monitoring Counters (PMC) are not supported | | Hypervisor | Yes, Microsoft |
Benchmark Result # Judge result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmarks: - Target: 2 Feb 2024 - 16:41 - Baseline: 2 Feb 2024 - 16:42 * Package commits: - Target: 850d6a - Baseline: 23da67 * Julia commits: - Target: d54a45 - Baseline: d54a45 * Julia command flags: - Target: None - Baseline: None * Environment variables: - Target: None - Baseline: None ## Results A ratio greater than `1.0` denotes a possible regression (marked with :x:), while a ratio less than `1.0` denotes a possible improvement (marked with :white_check_mark:). Only significant results - results that indicate possible regressions or improvements - are shown below (thus, an empty table means that all benchmark results remained invariant between builds). | ID | time ratio | memory ratio | |-------------------------------------------------------------|---------------|---------------| | `["tagquery", "misc", "from_tests"]` | 2.21 (5%) :x: | 1.66 (1%) :x: | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ### Target ``` Julia Version 1.11.0-DEV.1456 Commit d54a4550cbe (2024-02-02 07:09 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2600 MHz 3489 s 0 s 261 s 3302 s 0 s #2 3115 MHz 4292 s 0 s 249 s 2512 s 0 s #3 3140 MHz 3188 s 0 s 233 s 3632 s 0 s #4 3242 MHz 3355 s 0 s 217 s 3482 s 0 s Memory: 15.606903076171875 GB (13556.90234375 MB free) Uptime: 708.21 sec Load Avg: 1.16 2.02 1.4 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` ### Baseline ``` Julia Version 1.11.0-DEV.1456 Commit d54a4550cbe (2024-02-02 07:09 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 3569 s 0 s 270 s 3973 s 0 s #2 2445 MHz 4600 s 0 s 271 s 2942 s 0 s #3 3254 MHz 3262 s 0 s 242 s 4308 s 0 s #4 3243 MHz 3727 s 0 s 230 s 3857 s 0 s Memory: 15.606903076171875 GB (13665.015625 MB free) Uptime: 784.43 sec Load Avg: 1.14 1.82 1.37 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Target result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmark: 2 Feb 2024 - 16:41 * Package commit: 850d6a * Julia commit: d54a45 * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |-------------------------------------------------------------|----------------:|--------:|----------------:|------------:| | `["register", "creation_and_initialization", "from_tests"]` | 191.199 μs (5%) | | 704.48 KiB (1%) | 2454 | | `["tagquery", "misc", "from_tests"]` | 6.264 μs (5%) | | 13.03 KiB (1%) | 295 | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ``` Julia Version 1.11.0-DEV.1456 Commit d54a4550cbe (2024-02-02 07:09 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2600 MHz 3489 s 0 s 261 s 3302 s 0 s #2 3115 MHz 4292 s 0 s 249 s 2512 s 0 s #3 3140 MHz 3188 s 0 s 233 s 3632 s 0 s #4 3242 MHz 3355 s 0 s 217 s 3482 s 0 s Memory: 15.606903076171875 GB (13556.90234375 MB free) Uptime: 708.21 sec Load Avg: 1.16 2.02 1.4 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Baseline result # Benchmark Report for */home/runner/work/QuantumSavory.jl/QuantumSavory.jl* ## Job Properties * Time of benchmark: 2 Feb 2024 - 16:42 * Package commit: 23da67 * Julia commit: d54a45 * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |-------------------------------------------------------------|----------------:|--------:|----------------:|------------:| | `["register", "creation_and_initialization", "from_tests"]` | 182.423 μs (5%) | | 704.48 KiB (1%) | 2454 | | `["tagquery", "misc", "from_tests"]` | 2.829 μs (5%) | | 7.84 KiB (1%) | 143 | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["register", "creation_and_initialization"]` - `["tagquery", "misc"]` ## Julia versioninfo ``` Julia Version 1.11.0-DEV.1456 Commit d54a4550cbe (2024-02-02 07:09 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.3 LTS uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 2445 MHz 3569 s 0 s 270 s 3973 s 0 s #2 2445 MHz 4600 s 0 s 271 s 2942 s 0 s #3 3254 MHz 3262 s 0 s 242 s 4308 s 0 s #4 3243 MHz 3727 s 0 s 230 s 3857 s 0 s Memory: 15.606903076171875 GB (13665.015625 MB free) Uptime: 784.43 sec Load Avg: 1.14 1.82 1.37 WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Runtime information | Runtime Info | | |:--|:--| | BLAS #threads | 2 | | `BLAS.vendor()` | `lbt` | | `Sys.CPU_THREADS` | 4 | `lscpu` output: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 48 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: AuthenticAMD Model name: AMD EPYC 7763 64-Core Processor CPU family: 25 Model: 1 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Stepping: 1 BogoMIPS: 4890.86 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru arat npt nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload umip vaes vpclmulqdq rdpid fsrm Virtualization: AMD-V Hypervisor vendor: Microsoft Virtualization type: full L1d cache: 64 KiB (2 instances) L1i cache: 64 KiB (2 instances) L2 cache: 1 MiB (2 instances) L3 cache: 32 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Mitigation; safe RET, no microcode Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected | Cpu Property | Value | |:------------------ |:---------------------------------------------------------- | | Brand | AMD EPYC 7763 64-Core Processor | | Vendor | :AMD | | Architecture | :Unknown | | Model | Family: 0xaf, Model: 0x01, Stepping: 0x01, Type: 0x00 | | Cores | 16 physical cores, 16 logical cores (on executing CPU) | | | No Hyperthreading hardware capability detected | | Clock Frequencies | Not supported by CPU | | Data Cache | Level 1:3 : (32, 512, 32768) kbytes | | | 64 byte cache line size | | Address Size | 48 bits virtual, 48 bits physical | | SIMD | 256 bit = 32 byte max. SIMD vector size | | Time Stamp Counter | TSC is accessible via `rdtsc` | | | TSC runs at constant rate (invariant from clock frequency) | | Perf. Monitoring | Performance Monitoring Counters (PMC) are not supported | | Hypervisor | Yes, Microsoft |
Krastanov commented 5 months ago

This looks great! I made a couple of minor changes, hopefully did not break anything. I will plan to merge shortly.

Krastanov commented 5 months ago

Thanks for fixing the issues I introduced!