Skip to content

Commit

Permalink
feat: Add control qubit support for IZ90 gate and ensure proper barri…
Browse files Browse the repository at this point in the history
…er placement in Experiment class
  • Loading branch information
Akinori Machino committed Dec 29, 2024
1 parent d8470b4 commit db728c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qubex/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4559,6 +4559,7 @@ def add_gate(gate: str):
ps.add(control_qubit, z90)
elif gate == "IZ90":
ps.add(target_qubit, z90)
ps.add(cr_label, z90)
elif gate == "ZX90":
ps.barrier()
if isinstance(zx90, dict):
Expand All @@ -4573,8 +4574,8 @@ def add_gate(gate: str):
for clifford in cliffords:
for gate in clifford:
add_gate(gate)
ps.barrier()
if interleaved_waveform is not None:
ps.barrier()
if isinstance(interleaved_waveform, dict):
ps.add(control_qubit, interleaved_waveform[control_qubit])
ps.add(target_qubit, interleaved_waveform[target_qubit])
Expand Down

0 comments on commit db728c2

Please sign in to comment.