QuantestPy / quantestpy

Apache License 2.0
9 stars 3 forks source link

Unify all assert_equal methods #126

Closed junnaka51 closed 1 year ago

junnaka51 commented 2 years ago

circuit.assert_equal(circ_a, circ_b) circuit.assert_equal_to_operator(circ_a, op_b) operator.assert_equal(op_a, op_b)

=>

assert_equal(circuit_a=circ_a, circuit_b=circ_b) assert_equal(circ_a, unitary_matrix=op_b) assert_equal(op_a, unitary_operator=op_b) assert_equal(op_a, circ_b)

This needs more considerations before tackilng.