Skip to content

Commit 34e6c49

Browse files
committed
fix benchmark
1 parent 00b01a8 commit 34e6c49

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

benchmarks/correlations_and_spectrum.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
function _calculate_fft_spectrum(H, tlist, c_ops, A, B)
2+
corr = correlation_2op_1t(H, nothing, tlist, c_ops, A, B; progress_bar = Val(false))
3+
ωlist, spec = spectrum_correlation_fft(tlist, corr)
4+
return nothing
5+
end
6+
17
function benchmark_correlations_and_spectrum!(SUITE)
28
N = 15
39
ω = 1
@@ -13,12 +19,6 @@ function benchmark_correlations_and_spectrum!(SUITE)
1319

1420
PI_solver = PseudoInverse()
1521

16-
function _calculate_fft_spectrum(H, tlist, c_ops, A, B)
17-
corr = correlation_2op_1t(H, nothing, tlist, c_ops, A, B; progress_bar = Val(false))
18-
ωlist, spec = spectrum_correlation_fft(tlist, corr)
19-
return nothing
20-
end
21-
2222
SUITE["Correlations and Spectrum"]["FFT Correlation"] =
2323
@benchmarkable _calculate_fft_spectrum($H, $t_l, $c_ops, $(a'), $a)
2424

0 commit comments

Comments
 (0)