Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AllOverlaps for Excited States #302

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from

Conversation

jamie-tay
Copy link
Collaborator

AllOverlaps implemented for multiple spectral states.

@coveralls
Copy link

coveralls commented Jan 6, 2025

Pull Request Test Coverage Report for Build 12899684348

Details

  • 56 of 60 (93.33%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.005%) to 94.943%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/StatsTools/reweighting.jl 14 18 77.78%
Totals Coverage Status
Change from base Build 12842267300: -0.005%
Covered Lines: 6740
Relevant Lines: 7099

💛 - Coveralls

Copy link
Contributor

github-actions bot commented Jan 6, 2025

Benchmark result

Judge result

Benchmark Report for /home/runner/work/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmarks:
  • Target: 6 Jan 2025 - 00:02
  • Baseline: 6 Jan 2025 - 00:09
  • Package commits:
  • Target: a5a5c0
  • Baseline: 340e76
  • Julia commits:
  • Target: 5e9a32
  • Baseline: 5e9a32
  • 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 ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). 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

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Target

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.5 LTS
 uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2193 s 0 s 139 s 8180 s 0 s
 #2 0 MHz 1766 s 0 s 158 s 8585 s 0 s
 #3 0 MHz 2420 s 0 s 177 s 7903 s 0 s
 #4 0 MHz 2784 s 0 s 152 s 7576 s 0 s
 Memory: 15.606491088867188 GB (13315.015625 MB free)
 Uptime: 1055.24 sec
 Load Avg: 1.14 1.16 0.79
 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.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.5 LTS
 uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 3717 s 0 s 172 s 11372 s 0 s
 #2 0 MHz 3176 s 0 s 190 s 11892 s 0 s
 #3 0 MHz 3679 s 0 s 216 s 11354 s 0 s
 #4 0 MHz 3352 s 0 s 198 s 11709 s 0 s
 Memory: 15.606491088867188 GB (13390.73046875 MB free)
 Uptime: 1531.0 sec
 Load Avg: 1.05 1.06 0.91
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 6 Jan 2025 - 0:2
  • Package commit: a5a5c0
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.917 s (5%) 2.766 ms 93.58 MiB (1%) 24260
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.676 s (5%) 39.903 ms 366.83 MiB (1%) 2038836
["Rimu", "Exact", "Multiplication", "Momentum space"] 803.405 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.322 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 28.081 s (5%) 59.96 MiB (1%) 1925306
["Rimu", "FCIQMC", "(50, 50) Real space"] 22.068 s (5%) 13.075 ms 29.39 MiB (1%) 138205

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.5 LTS
 uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2193 s 0 s 139 s 8180 s 0 s
 #2 0 MHz 1766 s 0 s 158 s 8585 s 0 s
 #3 0 MHz 2420 s 0 s 177 s 7903 s 0 s
 #4 0 MHz 2784 s 0 s 152 s 7576 s 0 s
 Memory: 15.606491088867188 GB (13315.015625 MB free)
 Uptime: 1055.24 sec
 Load Avg: 1.14 1.16 0.79
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 6 Jan 2025 - 0:9
  • Package commit: 340e76
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.889 s (5%) 1.532 ms 93.58 MiB (1%) 24260
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.832 s (5%) 209.748 ms 366.83 MiB (1%) 2038836
["Rimu", "Exact", "Multiplication", "Momentum space"] 805.493 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.320 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 28.288 s (5%) 19.411 ms 59.96 MiB (1%) 1925053
["Rimu", "FCIQMC", "(50, 50) Real space"] 22.153 s (5%) 29.39 MiB (1%) 138216

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.5 LTS
 uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 3717 s 0 s 172 s 11372 s 0 s
 #2 0 MHz 3176 s 0 s 190 s 11892 s 0 s
 #3 0 MHz 3679 s 0 s 216 s 11354 s 0 s
 #4 0 MHz 3352 s 0 s 198 s 11709 s 0 s
 Memory: 15.606491088867188 GB (13390.73046875 MB free)
 Uptime: 1531.0 sec
 Load Avg: 1.05 1.06 0.91
 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: Vulnerable: 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; BHI 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmarks:
  • Target: 20 Jan 2025 - 03:18
  • Baseline: 20 Jan 2025 - 03:27
  • Package commits:
  • Target: 58635a
  • Baseline: 0aff72
  • Julia commits:
  • Target: 5e9a32
  • Baseline: 5e9a32
  • 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 ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). 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

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Target

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2363 s 0 s 155 s 5661 s 0 s
 #2 0 MHz 3195 s 0 s 155 s 4810 s 0 s
 #3 0 MHz 2618 s 0 s 172 s 5413 s 0 s
 #4 0 MHz 1828 s 0 s 158 s 6204 s 0 s
 Memory: 15.615280151367188 GB (13513.98046875 MB free)
 Uptime: 827.44 sec
 Load Avg: 1.04 1.11 0.85
 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.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 3774 s 0 s 198 s 9932 s 0 s
 #2 0 MHz 4401 s 0 s 205 s 9280 s 0 s
 #3 0 MHz 3789 s 0 s 216 s 9923 s 0 s
 #4 0 MHz 3782 s 0 s 201 s 9935 s 0 s
 Memory: 15.615280151367188 GB (13365.85546875 MB free)
 Uptime: 1400.76 sec
 Load Avg: 1.01 1.05 0.96
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 20 Jan 2025 - 3:18
  • Package commit: 58635a
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.909 s (5%) 2.399 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.765 s (5%) 26.486 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 791.663 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.353 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 27.998 s (5%) 59.97 MiB (1%) 1925602
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.488 s (5%) 29.39 MiB (1%) 138221

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2363 s 0 s 155 s 5661 s 0 s
 #2 0 MHz 3195 s 0 s 155 s 4810 s 0 s
 #3 0 MHz 2618 s 0 s 172 s 5413 s 0 s
 #4 0 MHz 1828 s 0 s 158 s 6204 s 0 s
 Memory: 15.615280151367188 GB (13513.98046875 MB free)
 Uptime: 827.44 sec
 Load Avg: 1.04 1.11 0.85
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 20 Jan 2025 - 3:27
  • Package commit: 0aff72
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.909 s (5%) 2.692 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.769 s (5%) 23.783 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 800.712 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.324 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 28.944 s (5%) 59.96 MiB (1%) 1925325
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.853 s (5%) 29.39 MiB (1%) 138224

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 3774 s 0 s 198 s 9932 s 0 s
 #2 0 MHz 4401 s 0 s 205 s 9280 s 0 s
 #3 0 MHz 3789 s 0 s 216 s 9923 s 0 s
 #4 0 MHz 3782 s 0 s 201 s 9935 s 0 s
 Memory: 15.615280151367188 GB (13365.85546875 MB free)
 Uptime: 1400.76 sec
 Load Avg: 1.01 1.05 0.96
 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 vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves user_shstk 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 Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Vulnerable: 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; BHI 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmarks:
  • Target: 20 Jan 2025 - 22:51
  • Baseline: 20 Jan 2025 - 23:01
  • Package commits:
  • Target: d23783
  • Baseline: 0aff72
  • Julia commits:
  • Target: 5e9a32
  • Baseline: 5e9a32
  • 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 ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). 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

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Target

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 1332 s 0 s 96 s 5736 s 0 s
 #2 0 MHz 3461 s 0 s 76 s 3650 s 0 s
 #3 0 MHz 788 s 0 s 124 s 6242 s 0 s
 #4 0 MHz 642 s 0 s 93 s 6435 s 0 s
 Memory: 15.615280151367188 GB (13530.94921875 MB free)
 Uptime: 726.03 sec
 Load Avg: 1.08 1.0 0.61
 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.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2285 s 0 s 146 s 10223 s 0 s
 #2 0 MHz 4466 s 0 s 121 s 8092 s 0 s
 #3 0 MHz 2215 s 0 s 158 s 10273 s 0 s
 #4 0 MHz 2772 s 0 s 119 s 9772 s 0 s
 Memory: 15.615280151367188 GB (13429.31640625 MB free)
 Uptime: 1275.75 sec
 Load Avg: 1.02 1.05 0.84
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 20 Jan 2025 - 22:51
  • Package commit: d23783
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.893 s (5%) 3.569 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.819 s (5%) 23.890 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 798.944 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.340 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 28.190 s (5%) 59.96 MiB (1%) 1925318
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.836 s (5%) 29.39 MiB (1%) 138205

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 1332 s 0 s 96 s 5736 s 0 s
 #2 0 MHz 3461 s 0 s 76 s 3650 s 0 s
 #3 0 MHz 788 s 0 s 124 s 6242 s 0 s
 #4 0 MHz 642 s 0 s 93 s 6435 s 0 s
 Memory: 15.615280151367188 GB (13530.94921875 MB free)
 Uptime: 726.03 sec
 Load Avg: 1.08 1.0 0.61
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 20 Jan 2025 - 23:1
  • Package commit: 0aff72
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.915 s (5%) 2.819 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.697 s (5%) 33.417 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 802.619 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.329 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 27.776 s (5%) 59.96 MiB (1%) 1924996
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.333 s (5%) 29.39 MiB (1%) 138213

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2285 s 0 s 146 s 10223 s 0 s
 #2 0 MHz 4466 s 0 s 121 s 8092 s 0 s
 #3 0 MHz 2215 s 0 s 158 s 10273 s 0 s
 #4 0 MHz 2772 s 0 s 119 s 9772 s 0 s
 Memory: 15.615280151367188 GB (13429.31640625 MB free)
 Uptime: 1275.75 sec
 Load Avg: 1.02 1.05 0.84
 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 vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves user_shstk 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 Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Vulnerable: 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; BHI 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmarks:
  • Target: 21 Jan 2025 - 01:56
  • Baseline: 21 Jan 2025 - 02:05
  • Package commits:
  • Target: 0e6b5d
  • Baseline: 0aff72
  • Julia commits:
  • Target: 5e9a32
  • Baseline: 5e9a32
  • 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 ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). 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

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Target

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 1388 s 0 s 101 s 5272 s 0 s
 #2 0 MHz 2982 s 0 s 86 s 3715 s 0 s
 #3 0 MHz 1035 s 0 s 99 s 5649 s 0 s
 #4 0 MHz 847 s 0 s 109 s 5796 s 0 s
 Memory: 15.615280151367188 GB (13542.01171875 MB free)
 Uptime: 686.61 sec
 Load Avg: 1.0 0.92 0.55
 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.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2620 s 0 s 135 s 9518 s 0 s
 #2 0 MHz 6037 s 0 s 110 s 6153 s 0 s
 #3 0 MHz 2012 s 0 s 149 s 10137 s 0 s
 #4 0 MHz 1119 s 0 s 162 s 10983 s 0 s
 Memory: 15.615280151367188 GB (13464.26953125 MB free)
 Uptime: 1238.62 sec
 Load Avg: 1.0 1.0 0.78
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 21 Jan 2025 - 1:56
  • Package commit: 0e6b5d
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.912 s (5%) 1.565 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.797 s (5%) 31.542 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 799.487 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.355 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 28.056 s (5%) 59.96 MiB (1%) 1925172
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.990 s (5%) 29.39 MiB (1%) 138210

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 1388 s 0 s 101 s 5272 s 0 s
 #2 0 MHz 2982 s 0 s 86 s 3715 s 0 s
 #3 0 MHz 1035 s 0 s 99 s 5649 s 0 s
 #4 0 MHz 847 s 0 s 109 s 5796 s 0 s
 Memory: 15.615280151367188 GB (13542.01171875 MB free)
 Uptime: 686.61 sec
 Load Avg: 1.0 0.92 0.55
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 21 Jan 2025 - 2:5
  • Package commit: 0aff72
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.902 s (5%) 3.534 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.742 s (5%) 23.903 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 792.199 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.326 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 27.973 s (5%) 59.96 MiB (1%) 1925251
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.656 s (5%) 29.39 MiB (1%) 138210

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2620 s 0 s 135 s 9518 s 0 s
 #2 0 MHz 6037 s 0 s 110 s 6153 s 0 s
 #3 0 MHz 2012 s 0 s 149 s 10137 s 0 s
 #4 0 MHz 1119 s 0 s 162 s 10983 s 0 s
 Memory: 15.615280151367188 GB (13464.26953125 MB free)
 Uptime: 1238.62 sec
 Load Avg: 1.0 1.0 0.78
 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.84
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 vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves user_shstk 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 Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Vulnerable: 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; BHI 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmarks:
  • Target: 22 Jan 2025 - 02:15
  • Baseline: 22 Jan 2025 - 02:24
  • Package commits:
  • Target: d8c14d
  • Baseline: 0aff72
  • Julia commits:
  • Target: 5e9a32
  • Baseline: 5e9a32
  • 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 ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). 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

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Target

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 1214 s 0 s 89 s 5479 s 0 s
 #2 0 MHz 3082 s 0 s 100 s 3666 s 0 s
 #3 0 MHz 830 s 0 s 97 s 5904 s 0 s
 #4 0 MHz 1112 s 0 s 106 s 5591 s 0 s
 Memory: 15.615280151367188 GB (13527.6953125 MB free)
 Uptime: 690.62 sec
 Load Avg: 1.0 0.92 0.54
 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.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2206 s 0 s 123 s 10017 s 0 s
 #2 0 MHz 6473 s 0 s 119 s 5824 s 0 s
 #3 0 MHz 1229 s 0 s 151 s 11014 s 0 s
 #4 0 MHz 1915 s 0 s 158 s 10302 s 0 s
 Memory: 15.615280151367188 GB (13566.515625 MB free)
 Uptime: 1247.75 sec
 Load Avg: 1.03 1.02 0.78
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 22 Jan 2025 - 2:15
  • Package commit: d8c14d
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.897 s (5%) 1.555 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.650 s (5%) 32.010 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 791.204 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.324 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 27.902 s (5%) 59.96 MiB (1%) 1925194
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.850 s (5%) 29.39 MiB (1%) 138204

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 1214 s 0 s 89 s 5479 s 0 s
 #2 0 MHz 3082 s 0 s 100 s 3666 s 0 s
 #3 0 MHz 830 s 0 s 97 s 5904 s 0 s
 #4 0 MHz 1112 s 0 s 106 s 5591 s 0 s
 Memory: 15.615280151367188 GB (13527.6953125 MB free)
 Uptime: 690.62 sec
 Load Avg: 1.0 0.92 0.54
 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/Rimu.jl/Rimu.jl

Job Properties

  • Time of benchmark: 22 Jan 2025 - 2:24
  • Package commit: 0aff72
  • Julia commit: 5e9a32
  • 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
["Rimu", "Exact", "Diagonalization", "2D Hubbard"] 1.921 s (5%) 1.438 ms 93.58 MiB (1%) 24262
["Rimu", "Exact", "Diagonalization", "Bose-Hubbard in momentum space"] 17.759 s (5%) 56.817 ms 366.83 MiB (1%) 2038840
["Rimu", "Exact", "Multiplication", "Momentum space"] 794.845 ms (5%) 10.92 MiB (1%) 284
["Rimu", "Exact", "Multiplication", "Transcorrelated"] 2.323 s (5%) 1.87 MiB (1%) 291
["Rimu", "FCIQMC", "(10, 20) Mom space with projected energy and initiator"] 28.200 s (5%) 59.96 MiB (1%) 1925351
["Rimu", "FCIQMC", "(50, 50) Real space"] 21.335 s (5%) 29.39 MiB (1%) 138205

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Rimu", "Exact", "Diagonalization"]
  • ["Rimu", "Exact", "Multiplication"]
  • ["Rimu", "FCIQMC"]

Julia versioninfo

Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 24.04.1 LTS
 uname: Linux 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64
 CPU: AMD EPYC 7763 64-Core Processor: 
 speed user nice sys idle irq
 #1 0 MHz 2206 s 0 s 123 s 10017 s 0 s
 #2 0 MHz 6473 s 0 s 119 s 5824 s 0 s
 #3 0 MHz 1229 s 0 s 151 s 11014 s 0 s
 #4 0 MHz 1915 s 0 s 158 s 10302 s 0 s
 Memory: 15.615280151367188 GB (13566.515625 MB free)
 Uptime: 1247.75 sec
 Load Avg: 1.03 1.02 0.78
 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 vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves user_shstk 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 Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Vulnerable: 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; BHI 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

Comment on lines 561 to 564
num_spectral = length(Set(
[name[1:findlast('_',name)] for name in names(df) if startswith(name,"norm")]
))
num_reps = div(length(filter(startswith("norm"), names(df))),num_spectral)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm this feels a bit clunky and probably isn't backwards-compatible. Maybe we should store num_spectral and num_replicas in the data frame and use that. If the metadata is not available, we could resort to assuming it's a data frame from and old version of Rimu and use the old version of the code.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the fields "num_replicas" and "num_spectral_states" in the report metadata!

Comment on lines 155 to 159
append!(
names,
[name[1:findlast('_',name)-1]*"_s$j"*
name[findlast('_',name):end] for name in names_j]
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
append!(
names,
[name[1:findlast('_',name)-1]*"_s$j"*
name[findlast('_',name):end] for name in names_j]
)
append!(
names,
name[1:findlast('_',name)-1]*"_s$j"*
name[findlast('_',name):end] for name in names_j
)

I think it should work like this (or maybe you need to put the for-loop expression in regular parentheses), so it doesn't need to allocate a bunch of temporary vectors. Also, indexing into strings is generally not recommended, but I don't immediately see a cleaner solution.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all_overlaps now generates the full names in the first place.

Copy link
Collaborator

@joachimbrand joachimbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick comment so far.

Comment on lines 71 to 72
For multiple spectral states, the column names are of the form `c{i}_dot_s{l}_c{j}` for
vector-vector overlaps, and `c{i}_Op{k}_s{l}_c{j}` for operator overlaps.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the best naming scheme is here. This feels a bit unintuitive to me. I guess l would be the spectral state?

How about c{i}_dot_c{j}:{s}, where s numbers the spectral state? Similarly c{i}_Op{k}_c{j}:{s}. Or is there a good reason not to use a colon (:) in a field name?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so the colon is not a good idea. My current thinking is that the best format would be
r{i}s{m}_dot_r{j}s{m} for the overlaps of the mth spectral state of replicas i and j, and correspondingly for the operators r{i}s{m}_Op1_r{j}s{m}.

Overlaps mixing different spectral states would not be generated by default but could be enabled by a keyword argument, e.g. mixed_spectral_overlaps=true, in which case you would get column names like r{i}s{m}_dot_r{j}s{n}.

To make this consistent, we should also rename the single-replica column names, e.g. shift_r{i}s{m}. The only special case I would allow is when there is only a single replica and single spectral state, in which case it'll just be shift.

Now this is a fairly big change, as some StatsTools code will have to be changed. The functions that read the DataFrame should though determine the number of replicas and spectral states from the metadata. Which states they will act on could be specified by a command-line argument (or by passing explicitly the names of the DataFrame columns). It will also break some of the older scripts used for analysis.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now implemented, with all_overlaps now taking a matrix of vectors and calculating all replica overlaps for each spectral state, as well as all replica overlaps for different spectral states if mixed_spectral_overlaps=true (in this case the computation can be very slow).

For the StatsTools, most of them allow explicitly passing the column names. For the rayleigh_replica_estimator, replica_fidelity, and variational_energy_estimator, I added a keyword argument for which spectral state to use. Let me know if anything should be added or done differently.

@joachimbrand
Copy link
Collaborator

joachimbrand commented Jan 19, 2025

Just a quick comment here: This looks good. I see that there are conflicts with develop that will need to be resolved. Please do that and mark as "Ready for Review". Hopefully the documentation CI will run through such that we can see how the documentation comes out.

It may also be good to add some more tests to bump the coverage to >90% 😄

@jamie-tay jamie-tay marked this pull request as ready for review January 21, 2025 02:42
Copy link
Collaborator

@mtsch mtsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments, but looks great otherwise!

throw(ArgumentError(
"No replicas found. Use keyword \
`replica_strategy=AllOverlaps(n)` with n≥2 in `ProjectorMonteCarloProblem` to set up replicas!"
))
end
@assert num_replicas ≥ 2 "At least two replicas are needed, found $num_replicas"

num_overlaps = length(filter(startswith(r"c._dot"), names(df)))
num_overlaps = length(filter(startswith(Regex("r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)")), names(df)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Regex(r"...") work? Shouldn't it be just

Suggested change
num_overlaps = length(filter(startswith(Regex("r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)")), names(df)))
num_overlaps = length(filter(startswith("r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)"), names(df)))

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it has to be done with Regex("...") when you have interpolation (the "r" is just part of the string).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matija probably meant this way of writing it:

Suggested change
num_overlaps = length(filter(startswith(Regex("r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)")), names(df)))
num_overlaps = length(filter(startswith(r"r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)"), names(df)))

I'm not sure whether this would make it more readable (if it works, I haven't tried it), so happy to leave it as it is.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think I'd prefer to store the number of overlaps in the DataFrame and retrieve it with a function num_overlaps() similar to num_replicas() and num_spectral_states.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I misread that! I think it needs to be done this way if you want to do string interpolation, so it's all good!

src/strategies_and_params/replicastrategy.jl Outdated Show resolved Hide resolved
Co-authored-by: mtsch <matijacufar@gmail.com>
Copy link
Collaborator

@joachimbrand joachimbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks very good now.

Please see my optional comments below.

throw(ArgumentError(
"No replicas found. Use keyword \
`replica_strategy=AllOverlaps(n)` with n≥2 in `ProjectorMonteCarloProblem` to set up replicas!"
))
end
@assert num_replicas ≥ 2 "At least two replicas are needed, found $num_replicas"

num_overlaps = length(filter(startswith(r"c._dot"), names(df)))
num_overlaps = length(filter(startswith(Regex("r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)")), names(df)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matija probably meant this way of writing it:

Suggested change
num_overlaps = length(filter(startswith(Regex("r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)")), names(df)))
num_overlaps = length(filter(startswith(r"r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)"), names(df)))

I'm not sure whether this would make it more readable (if it works, I haven't tried it), so happy to leave it as it is.

Comment on lines +56 to +57
num_replicas = parse(Int, metadata(df, "num_replicas"))
if num_replicas == 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should instead have a method for num_replicas(::DataFrame), e.g. defined in pmc_simulation.jl that could be called here.
The method could fall back to the old definition (filtering names(df)) for older DataFrames but throw an informative error if the DataFrame was not created by Rimu.jl? We will need that function more often.

throw(ArgumentError(
"No replicas found. Use keyword \
`replica_strategy=AllOverlaps(n)` with n≥2 in `ProjectorMonteCarloProblem` to set up replicas!"
))
end
@assert num_replicas ≥ 2 "At least two replicas are needed, found $num_replicas"

num_overlaps = length(filter(startswith(r"c._dot"), names(df)))
num_overlaps = length(filter(startswith(Regex("r[0-9]+s$(spectral_state)_dot_r[0-9]+s$(spectral_state)")), names(df)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think I'd prefer to store the number of overlaps in the DataFrame and retrieve it with a function num_overlaps() similar to num_replicas() and num_spectral_states.

Copy link
Collaborator

@mtsch mtsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants