Skip to content

Commit

Permalink
Code cleanup: remove unnecessary decomp_ids variable (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison authored May 3, 2024
1 parent 98af06e commit c75f5f5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions circuit_knitting/cutting/cutting_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def _get_mapping_ids_by_partition(
# Collect QPDGate id's and relevant map id's for each subcircuit
subcirc_qpd_gate_ids: dict[Hashable, list[list[int]]] = {}
subcirc_map_ids: dict[Hashable, list[int]] = {}
decomp_ids = set()
for label, circ in circuits.items():
subcirc_qpd_gate_ids[label] = []
subcirc_map_ids[label] = []
Expand All @@ -204,7 +203,6 @@ def _get_mapping_ids_by_partition(
' formatted as "<your_label>_N". This allows SingleQubitQPDGates '
"belonging to the same cut to be sampled jointly."
) from ex
decomp_ids.add(decomp_id)
subcirc_qpd_gate_ids[label].append([i])
subcirc_map_ids[label].append(decomp_id)

Expand Down

0 comments on commit c75f5f5

Please sign in to comment.