Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Mar 30, 2024
1 parent 73bccc4 commit 0472093
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion circuit_knitting/utils/equivalence.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@
q = QuantumRegister(1, "q")
def_rx = QuantumCircuit(q)
theta = Parameter("theta")
for inst in [RZGate(np.pi / 2), SXGate(), RZGate(theta + np.pi), SXGate(), RZGate(5 * np.pi / 2)]:
for inst in [
RZGate(np.pi / 2),
SXGate(),
RZGate(theta + np.pi),
SXGate(),
RZGate(5 * np.pi / 2),
]:
def_rx.append(inst, [0], [])
_eagle_sel.add_equivalence(RXGate(theta), def_rx)

Expand Down

0 comments on commit 0472093

Please sign in to comment.