Skip to content

Commit

Permalink
feat: improved random clifford
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Mar 13, 2024
1 parent e169837 commit 69d0cc7
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/qibo/quantum_info/random_ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,41 +1093,18 @@ def _create_S(q):
return gates.S(q)


def _create_S_layer(init_args, queue):
# for q in init_args:
# l.put(_create_S(q))
# print("S: ", l.qsize())
queue.put_nowait([_create_S(q) for q in init_args])


@cache
def _create_CZ(cq, tq):
return gates.CZ(cq, tq)


def _create_CZ_layer(init_args, queue):
# for cq, tq in init_args:
# l.put(_create_CZ(cq, tq))
# print("CZ: ",l.qsize())
queue.put_nowait([_create_CZ(cq, tq) for cq, tq in init_args])


@cache
def _create_CNOT(cq, tq):
return gates.CNOT(cq, tq)


def _create_CNOT_layer(init_args, queue):
# for cq, tq in init_args:
# l.put(_create_CNOT(cq, tq))
# print("CNOT: ", l.qsize())
queue.put_nowait([_create_CNOT(cq, tq) for cq, tq in init_args])


def _create_layer(func, init_args):
return func(init_args)


def _operator_from_hadamard_free_group(
gamma_matrix, delta_matrix, density_matrix: bool = False, pauli_operator=None
):
Expand Down

0 comments on commit 69d0cc7

Please sign in to comment.