From 835c0679bd87f862dc3e6d83c1b9d350760d7b10 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Sun, 31 Jul 2016 16:59:57 -0700 Subject: [PATCH] Document GraphState --- abp/graphstate.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/abp/graphstate.py b/abp/graphstate.py index 9c5f705..f7a6ce2 100644 --- a/abp/graphstate.py +++ b/abp/graphstate.py @@ -1,4 +1,4 @@ -""" +, "Stabilizer representation VS A&B"""" This module implements Anders and Briegel's method for fast simulation of Clifford circuits. """ @@ -400,7 +400,16 @@ class GraphState(object): return state def to_stabilizer(self): - """ Get the stabilizer representation of the state. """ + """ Get the stabilizer representation of the state:: + + >>> print g.to_stabilizer() + - X I I I I + I Z I I I + I I Z I I + I I I Z I + I I I I Z + + """ return Stabilizer(self) def __eq__(self, other):