Skip to content

Commit

Permalink
Add name to annotated gate circuit in qpy backwards compat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Apr 30, 2024
1 parent fecdcc7 commit 5acc780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/qpy_compat/test_qpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def generate_annotated_circuits():
CXGate(), [InverseModifier(), ControlModifier(1), PowerModifier(1.4), InverseModifier()]
)
op2 = AnnotatedOperation(XGate(), InverseModifier())
qc = QuantumCircuit(6, 1)
qc = QuantumCircuit(6, 1, name="Annotated circuits")
qc.cx(0, 1)
qc.append(op1, [0, 1, 2])
qc.h(4)
Expand Down

0 comments on commit 5acc780

Please sign in to comment.