-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
trols = Controls(num_qbits, {1:True, 2:False, 3:False})
generated
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-19-b5dfb9a1e5a2>](https://localhost:8080/#) in <cell line: 4>()
2 rads = 30*np.pi/180
3 ax = 2 # y axis
----> 4 trols = Controls(num_qbits, {1:True, 2:False, 3:False})
5 wr.write_controlled_one_qbit_gate(
6 target_pos, trols, OneQubitGate.rot_ax, [rads, ax])
TypeError: Controls.__init__() takes 2 positional arguments but 3 were given
in Colab.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels