From b80e90d1ed702877f905875be3e416ca599a62a3 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 17 Dec 2019 15:02:09 -0500 Subject: partial implementation of dynamic pt --- hadamard_mcmc.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'hadamard_mcmc.hpp') 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) { -- cgit v1.2.3-70-g09d2