Skip to content

Commit 13b0413

Browse files
Add CUDA.allowscalar(false)
1 parent 4000400 commit 13b0413

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ We can easily pass the computation to the GPU, by simply passing all the `Qobj`s
149149
```julia
150150
using QuantumToolbox
151151
using CUDA
152+
CUDA.allowscalar(false) # Avoid unexpected scalar indexing
152153

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

0 commit comments

Comments
 (0)