Skip to content

Commit

Permalink
fix (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
liorella-qm authored Jun 17, 2021
1 parent 4a854af commit c4f259e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qualang_tools/bakery/xeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from qualang_tools.bakery.bakery import baking, Baking
import numpy as np

rnd_gate_list = ["sx", "sy", "sw"]
rnd_gate_list = ["sx", "sy", "sw", "id"]

op_func = Callable[[Baking], None]

Expand All @@ -20,6 +20,7 @@ class XEBOpsSingleQubit:
Operations defined in this class correspond to single qubit operations
"""

id: op_func
sx: op_func
sy: op_func
sw: op_func
Expand Down Expand Up @@ -92,6 +93,8 @@ def _generate_xeb_sequence(self, q1_ops, q2_ops, two_qubit_op, align_op):
self.operations_list["q2"].append(rnd_gate_list[rnd2])
self.duration_tracker[i] = max(q1_len, q2_len) + b_2_qubit_len
i += 1
play_all_ops(b_main, b_q1[3])
play_all_ops(b_main, b_q2[3])
self.duration_tracker = np.cumsum(self.duration_tracker).tolist()
return b_main

Expand Down

0 comments on commit c4f259e

Please sign in to comment.