From 3a37e8b0850b6f464fc3d73d3133f053a2a05127 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Sun, 8 May 2016 15:39:13 +0100 Subject: [PATCH] Prepare for measurement --- abp/graphstate.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/abp/graphstate.py b/abp/graphstate.py index 8e5ba5f..23cf85e 100644 --- a/abp/graphstate.py +++ b/abp/graphstate.py @@ -93,6 +93,21 @@ class GraphState(object): if new_edge != edge: self.toggle_edge(a, b) + def measure_x(self, i): + """ Measure the graph in the X-basis """ + #TODO + pass + + def measure_y(self, i): + """ Measure the graph in the Y-basis """ + #TODO + pass + + def measure_Z(self, i): + """ Measure the graph in the Z-basis """ + #TODO + pass + def __str__(self): """ Represent as a string for quick debugging """ return "graph:\n vops: {}\n ngbh: {}\n"\