Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Sep 23, 2023
1 parent 3ee461a commit caa947a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def gen_cliff_single_2q_gate_map():
scipy.sparse.save_npz("clifford_compose_2q_sparse.npz", _CLIFFORD_COMPOSE_2Q)

_CLIFFORD_COMPOSE_2Q_TRANSPOSED = _CLIFFORD_COMPOSE_2Q.T
valid_sparse_indices = [num for num in range(11520) if _CLIFFORD_COMPOSE_2Q_TRANSPOSED[num, :].nnz == 11520 - 1]
valid_sparse_indices = [
num for num in range(11520) if _CLIFFORD_COMPOSE_2Q_TRANSPOSED[num, :].nnz == 11520 - 1
]
clifford_num_to_dense_index = {idx: ii for ii, idx in enumerate(valid_sparse_indices)}

np.savez_compressed(
Expand Down

0 comments on commit caa947a

Please sign in to comment.