qubiter
qubiter copied to clipboard
Controls()
From https://nbviewer.org/github/artiste-qb-net/qubiter/blob/master/qubiter/jupyter_notebooks/Say_Hello_World_With_Qubiter.ipynb
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.