Switches from id() to _circuit_key() where the latter is that which the reference primitives use. Using id() is problematic, as #90 notes, though _circuit_key is designated a private method, and while its the better choice functionally, it feels a bit off to be using what is designated a private method. Its been used/stable for a while though. A choice might be to copy the whole routine here - but perhaps better to see if this changes going forwards in the way some unique key/hash can be obtained for a circuit.
Summary
Fixes #90
Details and comments
Switches from
id()
to_circuit_key()
where the latter is that which the reference primitives use. Using id() is problematic, as #90 notes, though_circuit_key
is designated a private method, and while its the better choice functionally, it feels a bit off to be using what is designated a private method. Its been used/stable for a while though. A choice might be to copy the whole routine here - but perhaps better to see if this changes going forwards in the way some unique key/hash can be obtained for a circuit.