Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls() #45

Open
bsiegelwax opened this issue Oct 28, 2023 · 0 comments
Open

Controls() #45

bsiegelwax opened this issue Oct 28, 2023 · 0 comments

Comments

@bsiegelwax
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant