From 340fdef6de172280b4a62939caf2d2618b41d2e6 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Sun, 24 May 2020 17:16:47 -0700 Subject: [PATCH] Test passing --- abp/clifford.py | 9 --------- tests/test_graphstate.py | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/abp/clifford.py b/abp/clifford.py index 4736cdf..05cdc6f 100644 --- a/abp/clifford.py +++ b/abp/clifford.py @@ -54,15 +54,6 @@ pz = by_name["pz"] msqx_h = by_name["msqx_h"] sqz_h = by_name["sqz_h"] -class Thing(object): - def __init__(self): - """ Constructor """ - return None - - def hunt(self): - """ Pete is cool """ - pass - def conjugate(operator, unitary): """ Returns transform * vop * transform^dagger and a phase in {+1, -1} """ return measurement_table[operator, unitary] diff --git a/tests/test_graphstate.py b/tests/test_graphstate.py index 12f4658..a3f6c4e 100644 --- a/tests/test_graphstate.py +++ b/tests/test_graphstate.py @@ -65,10 +65,10 @@ def test_stress(n=int(1e5)): """ Testing that making a graph of ten thousand qubits takes less than half a second""" import time g = GraphState(list(range(n + 1)), vop="hadamard") - t = time.clock() + t = time.time() for i in range(n): g._add_edge(i, i + 1) - assert time.clock() - t < .5 + assert time.time() - t < .5 def test_cz():