|
@@ -165,7 +165,7 @@ class GraphState(object): |
|
|
else: |
|
|
else: |
|
|
output += " I " |
|
|
output += " I " |
|
|
output += "\n" |
|
|
output += "\n" |
|
|
return output.strip() |
|
|
|
|
|
|
|
|
return output |
|
|
|
|
|
|
|
|
def adj_list(self): |
|
|
def adj_list(self): |
|
|
""" For comparison with Anders and Briegel's C++ implementation """ |
|
|
""" For comparison with Anders and Briegel's C++ implementation """ |
|
@@ -175,7 +175,7 @@ class GraphState(object): |
|
|
vop = clifford.ab_names.get(vop, vop) |
|
|
vop = clifford.ab_names.get(vop, vop) |
|
|
s = "Vertex {}: VOp {}, neighbors {}".format(key, vop, ngbh) |
|
|
s = "Vertex {}: VOp {}, neighbors {}".format(key, vop, ngbh) |
|
|
rows.append(s) |
|
|
rows.append(s) |
|
|
return "\n".join(rows) |
|
|
|
|
|
|
|
|
return " \n".join(rows)+ " \n" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|