summaryrefslogtreecommitdiff
path: root/hadamard_mcmc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hadamard_mcmc.hpp')
-rw-r--r--hadamard_mcmc.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/hadamard_mcmc.hpp b/hadamard_mcmc.hpp
index 9f0d8c0..c9fa2da 100644
--- a/hadamard_mcmc.hpp
+++ b/hadamard_mcmc.hpp
@@ -140,6 +140,12 @@ public:
virtual void after_sweep(double, double, const Orthogonal&){};
};
+typedef enum {
+ none,
+ up,
+ down
+} color;
+
class MCMC {
private:
randutils::mt19937_rng rng;
@@ -150,10 +156,14 @@ public:
const double β;
double E;
Orthogonal M;
+ unsigned tag;
+ color c;
- MCMC(unsigned n, double β0, Measurement& A) : A(A), M(n), β(β0) {
+ MCMC(unsigned n, double β0, Measurement& A, unsigned tag = 0) : A(A), M(n), β(β0) {
θ0 = M_PI;
E = M.energy();
+ tag = tag;
+ c = none;
}
bool step(Givens& g, bool dry = false) {