Loading...
Searching...
No Matches
disentanglement_settings.hpp
Go to the documentation of this file.
1#pragma once
2
3/**
4 * DisentanglementSettings — the damping, the tolerance and the budget of the
5 * subspace iteration (SubspaceDisentangler).
6 */
7
9
10namespace q3 {
11
12struct [[nodiscard]] DisentanglementSettings {
13 /// Mixing of Z between iterations; 1 is undamped and oscillates on metals.
14 Real damping = 0.5;
15 /// Relative, because an absolute spread threshold does not transfer between systems.
16 Real convergence_tolerance = 1.0e-10;
17 int maximum_iterations = 4000;
18 /// Iterations the relative change must stay below the tolerance for.
19 int convergence_window = 5;
20};
21
22} // namespace q3
double Real