From 55704d44a6b60e48c5ab9a3c90bc559c02a32f4b Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 25 Jul 2016 02:42:47 +0100 Subject: [PATCH] Better integration of `mock` --- tests/test_graphstate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_graphstate.py b/tests/test_graphstate.py index dd23a3a..a5741c4 100644 --- a/tests/test_graphstate.py +++ b/tests/test_graphstate.py @@ -103,18 +103,18 @@ def test_single_qubit(): assert a.to_state_vector() == b -def test_graphstate_multiqubit(n=6): +def test_graph_state_multiqubit(n=6): """ A multi qubit test with Hadamards only""" - for repeat in tqdm(range(REPEATS), desc="Randomly testing multiqubit operations against circuit model"): + for repeat in tqdm(range(REPEATS), desc="Random graph states against the circuit model"): circuit = mock.random_graph_circuit(n) a = mock.circuit_to_state(mock.ABPWrapper, n, circuit) b = mock.circuit_to_state(mock.CircuitModelWrapper, n, circuit) assert a.to_state_vector() == b -def test_stabilizerstate_multiqubit(n=6): +def test_stabilizer_state_multiqubit(n=6): """ A multi qubit test with arbitrary local rotations """ - for repeat in tqdm(range(REPEATS), desc="Randomly testing multiqubit operations against circuit model"): + for repeat in tqdm(range(REPEATS), desc="Random Clifford circuits against the circuit model"): circuit = mock.random_stabilizer_circuit(n) a = mock.circuit_to_state(mock.ABPWrapper, n, circuit) b = mock.circuit_to_state(mock.CircuitModelWrapper, n, circuit)