Skip to content

More tests for CUDA + MPS#406

Draft
kshyatt wants to merge 9 commits intomainfrom
ksh/cu2
Draft

More tests for CUDA + MPS#406
kshyatt wants to merge 9 commits intomainfrom
ksh/cu2

Conversation

@kshyatt
Copy link
Copy Markdown
Member

@kshyatt kshyatt commented Mar 26, 2026

Revealed a bunch more missing things needing fixes, so I will keep this as draft for now.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Your PR requires formatting changes to meet the project's style guidelines.
Please consider running Runic (git runic main) to apply these changes.

Click here to view the suggested changes.
diff --git a/src/operators/jordanmpotensor.jl b/src/operators/jordanmpotensor.jl
index 891ff8f..3528d22 100644
--- a/src/operators/jordanmpotensor.jl
+++ b/src/operators/jordanmpotensor.jl
@@ -238,10 +238,10 @@ end
     j = I[4]
     if (size(W, 4) > 1 && i == 1 && j == 1) ||
             (size(W, 1) > 1 && i == size(W, 1) && j == size(W, 4))
-            T = scalartype(W)
-            TA = storagetype(W)
-            S = spacetype(eachspace(W)[1])
-            return BraidingTensor{T, S, TA}(eachspace(W)[1])
+        T = scalartype(W)
+        TA = storagetype(W)
+        S = spacetype(eachspace(W)[1])
+        return BraidingTensor{T, S, TA}(eachspace(W)[1])
     elseif i == 1 && j == size(W, 4)
         return insertrightunit(insertleftunit(only(W.D), 1), 3)
     elseif i == 1
diff --git a/test/gpu/cuda/operators.jl b/test/gpu/cuda/operators.jl
index 44337e8..030fd74 100644
--- a/test/gpu/cuda/operators.jl
+++ b/test/gpu/cuda/operators.jl
@@ -176,7 +176,7 @@ end
     H1mps = H1 * mps
     @test TensorKit.storagetype(H1mps) == CuVector{T, CUDA.DeviceMemory}
     hH1tmstate = hH1_tm * hstate
-    H1tmstate = H1_tm * state 
+    H1tmstate = H1_tm * state
     @test TensorKit.storagetype(H1tmstate) == CuVector{T, CUDA.DeviceMemory}
     @test norm(H1mps) ≈ norm(H1tmstate)
 

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