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

Qobj constructor has no kwarg 'dtype' #51

Open
taylorpatti opened this issue Apr 3, 2024 · 2 comments
Open

Qobj constructor has no kwarg 'dtype' #51

taylorpatti opened this issue Apr 3, 2024 · 2 comments

Comments

@taylorpatti
Copy link

I double checked my dependencies and package versions, but

Qobj(data_structure, dtype='cupyd')`

still produces the error message

TypeError: Qobj.__init__() got an unexpected keyword argument 'dtype'

I was able to get around it with initializing the Qobj and then sending it to cupyd with a to call, but of course this is non-ideal, especially for large data structures.

@Ericgig
Copy link
Member

Ericgig commented Apr 3, 2024

Normally Qobj(cypy_array) should use cupyd format automatically. Maybe this require #41?

qutip-cupy was a GSoC project and has not been kept up to date since the student left.
Some features are probably missing.

@SpaceVector
Copy link

You can use Qobj(qutip_cupy.CuPyDense(data_structure)) to temporarily solve this problem.

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

3 participants