Skip to content

Commit

Permalink
Add CUDA.allowscalar(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertomercurio authored Sep 10, 2024
1 parent 4000400 commit 13b0413
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ We can easily pass the computation to the GPU, by simply passing all the `Qobj`s
```julia
using QuantumToolbox
using CUDA
CUDA.allowscalar(false) # Avoid unexpected scalar indexing

a_gpu = cu(destroy(N)) # The only difference in the code is the cu() function

Expand Down

0 comments on commit 13b0413

Please sign in to comment.