Procházet zdrojové kódy

Move and slight improvement to status messages

master
Pete Shadbolt před 8 roky
rodič
revize
1a8b8bd112
5 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. +0
    -0
      abp/__init__.py
  2. +0
    -0
      abp/graph.py
  3. +3
    -2
      abp/make_tables.py
  4. +0
    -0
      abp/qi.py
  5. +0
    -0
      abp/viz.py

+ 0
- 0
abp/__init__.py Zobrazit soubor


graph.py → abp/graph.py Zobrazit soubor


make_tables.py → abp/make_tables.py Zobrazit soubor

@@ -70,7 +70,7 @@ def get_conjugation_table(unitaries):
def get_times_table(unitaries):
""" Construct the times-table """
return np.array([[find_clifford(u.dot(v), unitaries) for v in unitaries]
for u in tqdm(unitaries)])
for u in tqdm(unitaries, desc="Building times-table")])


def get_state_table():
@@ -90,7 +90,8 @@ def get_cz_table(unitaries):
state_table = get_state_table()

cz_table = np.zeros((2, 24, 24, 3))
for bond, c1, c2 in tqdm(list(it.product([0, 1], range(24), range(24)))):
rows = list(it.product([0, 1], range(24), range(24)))
for bond, c1, c2 in tqdm(rows, desc="Building CZ table"):
cz_table[bond, c1, c2] = find_cz(bond, c1, c2, commuters, state_table)
return cz_table


qi.py → abp/qi.py Zobrazit soubor


viz.py → abp/viz.py Zobrazit soubor


Načítá se…
Zrušit
Uložit