Преглед на файлове

Solved a dumb little problem. TODO: refactor :gun:

master
Pete Shadbolt преди 8 години
родител
ревизия
c2b942dada
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. +2
    -1
      tests/test_against_anders_and_briegel.py

+ 2
- 1
tests/test_against_anders_and_briegel.py Целия файл

@@ -6,6 +6,7 @@ import random
import difflib import difflib
import re import re
from copy import deepcopy from copy import deepcopy
from tqdm import tqdm


def compare(a, b): def compare(a, b):
""" TODO: Sketchy as you like. Remove this abomination """ """ TODO: Sketchy as you like. Remove this abomination """
@@ -126,7 +127,7 @@ def test_all(N=3):
a = graphsim.GraphRegister(N) a = graphsim.GraphRegister(N)
b = GraphState(range(N)) b = GraphState(range(N))
previous_state, previous_cz = None, None previous_state, previous_cz = None, None
while isequal(a, b):
for i in tqdm(range(100000), desc="Testing against Anders and Briegel"):
if random.random()>0.5: if random.random()>0.5:
j = random.randint(0, N-1) j = random.randint(0, N-1)
a.hadamard(j) a.hadamard(j)


Loading…
Отказ
Запис