Skip to content

Commit

Permalink
Update src/projector_monte_carlo_problem.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Joachim Brand <joachim.brand@gmail.com>
  • Loading branch information
jamie-tay and joachimbrand authored Nov 28, 2024
1 parent 2093077 commit d9f3fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projector_monte_carlo_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d9f3fde

Please sign in to comment.