From d9f3fde55e02cae8c65570e04e1cc26ae157982c Mon Sep 17 00:00:00 2001 From: jamie-tay Date: Fri, 29 Nov 2024 08:36:17 +1300 Subject: [PATCH] Update src/projector_monte_carlo_problem.jl Co-authored-by: Joachim Brand --- src/projector_monte_carlo_problem.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projector_monte_carlo_problem.jl b/src/projector_monte_carlo_problem.jl index 1e75e6999..bdb111d8f 100644 --- a/src/projector_monte_carlo_problem.jl +++ b/src/projector_monte_carlo_problem.jl @@ -186,7 +186,7 @@ function ProjectorMonteCarloProblem( n_spectral = num_spectral_states(spectral_strategy) # spectral_strategy may override n_spectral - if replica_strategy == AllOverlaps(n_replicas) && n_spectral > 1 + if replica_strategy isa AllOverlaps && n_spectral > 1 throw(ArgumentError("AllOverlaps is not implemented for more than one spectral state.")) end