Skip to content

Commit

Permalink
Fix hadamard schedule in the RZX builder. This should not use sequent…
Browse files Browse the repository at this point in the history
…ial context.
  • Loading branch information
nkanazawa1989 committed Oct 19, 2022
1 parent 4d0ddf5 commit 6a90761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiskit/transpiler/passes/calibration/rzx_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ def get_calibration(self, node_op: CircuitInst, qubits: List) -> Union[Schedule,
sxc = self._inst_map.get("sx", qubits[1])
szt = self._inst_map.get("rz", qubits[0], np.pi / 2)
sxt = self._inst_map.get("sx", qubits[0])
with builder.build(default_alignment="sequential", name="hadamard") as hadamard:
with builder.build(name="hadamard") as hadamard:
# Control qubit
builder.call(szc, name="rzc")
builder.call(szc, name="szc")
builder.call(sxc, name="sxc")
builder.call(szc, name="szc")
# Target qubit
builder.call(szt, name="rzt")
builder.call(szt, name="szt")
builder.call(sxt, name="sxt")
builder.call(szt, name="szt")

Expand Down

0 comments on commit 6a90761

Please sign in to comment.