Skip to content

Commit

Permalink
fix more mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMacCQ committed Nov 14, 2023
1 parent 76f326f commit 15f6c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/qiskit_convert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_test_circuit(measure: bool, reset: bool = True) -> QuantumCircuit:
qc.cy(qr[0], qr[1])
qc.cz(qr[1], qr[2])
qc.ecr(qr[0], qr[1])
qc.i(qr[2])
qc.id(qr[2])
qc.iswap(qr[3], qr[0])
qc.mcx([qr[0], qr[1], qr[2]], qr[3])
qc.mcx([qr[1], qr[2], qr[3]], qr[0])
Expand Down Expand Up @@ -719,6 +719,8 @@ def test_parameter_equality() -> None:
pytket_circ = qiskit_to_tk(circ, preserve_param_uuid=True)
final_circ = tk_to_qiskit(pytket_circ)

assert final_circ.parameters == circ.parameters

param_dict = dict(zip([param_a, param_b], [1, 2]))
final_circ.assign_parameters(param_dict, inplace=True)

Expand Down

0 comments on commit 15f6c46

Please sign in to comment.