From 4296e9d224597798f36318168a4c7820700a6523 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Tue, 24 May 2016 02:08:23 +0100 Subject: [PATCH] CHP --- .gitignore | 1 + setup.py | 11 +++++------ tests/test_against_anders_and_briegel.py | 12 +----------- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 9d6b18f..922dd2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +chp/ .agignore venv/ fresh_venv/ diff --git a/setup.py b/setup.py index 2a673be..8761694 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,13 @@ from setuptools import setup, find_packages setup( - name = "abp", + name = "chp", version = "0.1", packages = find_packages(), test_suite = 'tests', - author = "Pete Shadbolt", - author_email = "hello@peteshadbolt.co.uk", - description = "Implements Anders and Briegel in Python", - license = "MIT", + author = "Scott Aaronson & Daniel Gottesman (Ported by Pete Shadbolt)", + description = "CNOT Hadamard Phase", + license = "Copyright Scott & others", keywords = "quantum", - url = "https://github.com/peteshadbolt/abp/" + url = "http://www.scottaaronson.com/chp/" ) diff --git a/tests/test_against_anders_and_briegel.py b/tests/test_against_anders_and_briegel.py index ae21062..bbe4fc9 100644 --- a/tests/test_against_anders_and_briegel.py +++ b/tests/test_against_anders_and_briegel.py @@ -123,7 +123,6 @@ def test_all(N=3): clifford.use_old_cz() - a = graphsim.GraphRegister(N) b = GraphState(range(N)) previous_state, previous_cz = None, None @@ -136,15 +135,6 @@ def test_all(N=3): q = random.randint(0, N-2) a.cphase(q, q+1) b.act_cz(q, q+1) - previous_state = deepcopy(b) - previous_cz = q, q+1 - - print "Initial state:" - print previous_state.node - print previous_state.adj - print "CZ:", previous_cz - print "Pete state:\n", a.get_adj_list() - print "Anders state:\n", b.adj_list() - + compare(a, b)