Closed isolatedinformation closed 3 years ago
The issue is fixed by interchanging the tuples between target and control qubits. line 5 in the second code block should be
controlled_circuit_gate( 2, (1, 4), RxGate(√0.2), N)
Hi, Thanks for bringing this to my attention. Sorry for the late response. We are actually shifting over to a new API now. We now use: circuit_gate(wires::NTuple(...) , ::AbstractGate, control_wires::NTuple(...)=...) to create CircuitGate objectes.
The following error showed up while running the
view_example.ipynb.
My conjecture is this may arise becausecontrolled_circuit_gate
method is overloaded before it is defined. It does not show up as error. But it also doesn't suggest the overloaded function in line 213 as a close candidate. If I understood the source code properly, then that is the overloaded method which has to be executed