Closed cqc-alec closed 3 months ago
After updating qiskit (to 1.2.0) and qiskit-ibm-runtime (to 0.28.0), test_parameter_equality fails.
test_parameter_equality
def test_parameter_equality() -> None: param_a = Parameter("a") param_b = Parameter("b") circ = QuantumCircuit(2) circ.rx(param_a, 0) circ.ry(param_b, 1) circ.cx(0, 1) # fails with preserve_param_uuid=False # as Parameter uuid attribute is not preserved # and so fails equality check at assign_parameters pytket_circ = qiskit_to_tk(circ, preserve_param_uuid=True) final_circ = tk_to_qiskit(pytket_circ) > assert final_circ.parameters == circ.parameters E assert ParameterView...Parameter(b)]) == ParameterView...Parameter(b)]) E E Full diff: E ParameterView([Parameter(a), Parameter(b)]) qiskit_convert_test.py:756: AssertionError
After updating qiskit (to 1.2.0) and qiskit-ibm-runtime (to 0.28.0),
test_parameter_equality
fails.