Skip to content

Custate.__init__ from CuState fix.#26

Merged
Ericgig merged 2 commits intoqutip:mainfrom
Ericgig:Custate.init_fix
Mar 5, 2026
Merged

Custate.__init__ from CuState fix.#26
Ericgig merged 2 commits intoqutip:mainfrom
Ericgig:Custate.init_fix

Conversation

@Ericgig
Copy link
Member

@Ericgig Ericgig commented Mar 5, 2026

When creating a CuState from another CuState, it would make an intermediate Dense conversion.

Remove that conversion and stay on the GPU.

@Ericgig Ericgig merged commit 2d7211e into qutip:main Mar 5, 2026
1 check passed
@Ericgig Ericgig deleted the Custate.init_fix branch March 5, 2026 21:58
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

Successfully merging this pull request may close these issues.

1 participant