Skip to content

Commit

Permalink
Pass for xx_plus_yy gate, too
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed Sep 24, 2024
1 parent 37dbb96 commit eaf1d8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qiskit_quimb/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def _gen_quimb_gates(op: Instruction, qubits: list[int], **kwargs) -> Iterator[q
theta, beta = op.params
phi = beta + 0.5 * math.pi
a, b = qubits
yield quimb.tensor.Gate("RZ", params=[phi], qubits=[a])
yield quimb.tensor.Gate("GIVENS", params=[0.5 * theta], qubits=[a, b])
yield quimb.tensor.Gate("RZ", params=[-phi], qubits=[a])
yield quimb.tensor.Gate("RZ", params=[phi], qubits=[a], **kwargs)
yield quimb.tensor.Gate("GIVENS", params=[0.5 * theta], qubits=[a, b], **kwargs)
yield quimb.tensor.Gate("RZ", params=[-phi], qubits=[a], **kwargs)
case "y":
yield quimb.tensor.Gate("Y", params=[], qubits=qubits, **kwargs)
case "z":
Expand Down

0 comments on commit eaf1d8d

Please sign in to comment.