Skip to content

Commit 708ecfd

Browse files
committed
enable complex tests
1 parent 8f2ef2c commit 708ecfd

5 files changed

Lines changed: 40 additions & 41 deletions

File tree

‎test/mooncake/indexmanipulations.jl‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ spacelist = (
4040
Vect[SU2Irrep](1 // 2 => 2),
4141
Vect[SU2Irrep](0 => 1, 1 // 2 => 1, 3 // 2 => 1)',
4242
),
43-
# (
44-
# Vect[FibonacciAnyon](:I => 2, :τ => 1),
45-
# Vect[FibonacciAnyon](:I => 1, :τ => 2)',
46-
# Vect[FibonacciAnyon](:I => 2, :τ => 2)',
47-
# Vect[FibonacciAnyon](:I => 2, :τ => 3),
48-
# Vect[FibonacciAnyon](:I => 2, :τ => 2),
49-
# ),
43+
(
44+
Vect[FibonacciAnyon](:I => 2, :τ => 1),
45+
Vect[FibonacciAnyon](:I => 1, :τ => 2)',
46+
Vect[FibonacciAnyon](:I => 2, :τ => 2)',
47+
Vect[FibonacciAnyon](:I => 2, :τ => 3),
48+
Vect[FibonacciAnyon](:I => 2, :τ => 2),
49+
),
5050
)
51-
eltypes = (Float64,) # no complex support yet
51+
eltypes = (Float64, ComplexF64)
5252

5353
@timedtestset "Mooncake - Index Manipulations: $(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes
5454
atol = default_tol(T)

‎test/mooncake/linalg.jl‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Test, TestExtras
22
using TensorKit
3-
using TensorOperations
43
using Mooncake
54
using Random
65

@@ -40,15 +39,15 @@ spacelist = (
4039
Vect[SU2Irrep](1 // 2 => 2),
4140
Vect[SU2Irrep](0 => 1, 1 // 2 => 1, 3 // 2 => 1)',
4241
),
43-
# (
44-
# Vect[FibonacciAnyon](:I => 2, :τ => 1),
45-
# Vect[FibonacciAnyon](:I => 1, :τ => 2)',
46-
# Vect[FibonacciAnyon](:I => 2, :τ => 2)',
47-
# Vect[FibonacciAnyon](:I => 2, :τ => 3),
48-
# Vect[FibonacciAnyon](:I => 2, :τ => 2),
49-
# ),
42+
(
43+
Vect[FibonacciAnyon](:I => 2, :τ => 1),
44+
Vect[FibonacciAnyon](:I => 1, :τ => 2)',
45+
Vect[FibonacciAnyon](:I => 2, :τ => 2)',
46+
Vect[FibonacciAnyon](:I => 2, :τ => 3),
47+
Vect[FibonacciAnyon](:I => 2, :τ => 2),
48+
),
5049
)
51-
eltypes = (Float64,) # no complex support yet
50+
eltypes = (Float64, ComplexF64)
5251

5352
@timedtestset "Mooncake - LinearAlgebra: $(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes
5453
atol = default_tol(T)

‎test/mooncake/planaroperations.jl‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ spacelist = (
4141
Vect[SU2Irrep](1 // 2 => 2),
4242
Vect[SU2Irrep](0 => 1, 1 // 2 => 1, 3 // 2 => 1)',
4343
),
44-
# (
45-
# Vect[FibonacciAnyon](:I => 2, :τ => 1),
46-
# Vect[FibonacciAnyon](:I => 1, :τ => 2)',
47-
# Vect[FibonacciAnyon](:I => 2, :τ => 2)',
48-
# Vect[FibonacciAnyon](:I => 2, :τ => 3),
49-
# Vect[FibonacciAnyon](:I => 2, :τ => 2),
50-
# ),
44+
(
45+
Vect[FibonacciAnyon](:I => 2, :τ => 1),
46+
Vect[FibonacciAnyon](:I => 1, :τ => 2)',
47+
Vect[FibonacciAnyon](:I => 2, :τ => 2)',
48+
Vect[FibonacciAnyon](:I => 2, :τ => 3),
49+
Vect[FibonacciAnyon](:I => 2, :τ => 2),
50+
),
5151
)
52-
eltypes = (Float64,) # no complex support yet
52+
eltypes = (Float64, ComplexF64)
5353

5454
@timedtestset "Mooncake - PlanarOperations: $(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes
5555
atol = default_tol(T)

‎test/mooncake/tensoroperations.jl‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ spacelist = (
4040
Vect[SU2Irrep](1 // 2 => 2),
4141
Vect[SU2Irrep](0 => 1, 1 // 2 => 1, 3 // 2 => 1)',
4242
),
43-
# (
44-
# Vect[FibonacciAnyon](:I => 2, :τ => 1),
45-
# Vect[FibonacciAnyon](:I => 1, :τ => 2)',
46-
# Vect[FibonacciAnyon](:I => 2, :τ => 2)',
47-
# Vect[FibonacciAnyon](:I => 2, :τ => 3),
48-
# Vect[FibonacciAnyon](:I => 2, :τ => 2),
49-
# ),
43+
(
44+
Vect[FibonacciAnyon](:I => 2, :τ => 1),
45+
Vect[FibonacciAnyon](:I => 1, :τ => 2)',
46+
Vect[FibonacciAnyon](:I => 2, :τ => 2)',
47+
Vect[FibonacciAnyon](:I => 2, :τ => 3),
48+
Vect[FibonacciAnyon](:I => 2, :τ => 2),
49+
),
5050
)
51-
eltypes = (Float64,) # no complex support yet
51+
eltypes = (Float64, ComplexF64)
5252

5353
@timedtestset "Mooncake - TensorOperations: $(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes
5454
atol = default_tol(T)

‎test/mooncake/vectorinterface.jl‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ spacelist = (
4040
Vect[SU2Irrep](1 // 2 => 2),
4141
Vect[SU2Irrep](0 => 1, 1 // 2 => 1, 3 // 2 => 1)',
4242
),
43-
# (
44-
# Vect[FibonacciAnyon](:I => 2, :τ => 1),
45-
# Vect[FibonacciAnyon](:I => 1, :τ => 2)',
46-
# Vect[FibonacciAnyon](:I => 2, :τ => 2)',
47-
# Vect[FibonacciAnyon](:I => 2, :τ => 3),
48-
# Vect[FibonacciAnyon](:I => 2, :τ => 2),
49-
# ),
43+
(
44+
Vect[FibonacciAnyon](:I => 2, :τ => 1),
45+
Vect[FibonacciAnyon](:I => 1, :τ => 2)',
46+
Vect[FibonacciAnyon](:I => 2, :τ => 2)',
47+
Vect[FibonacciAnyon](:I => 2, :τ => 3),
48+
Vect[FibonacciAnyon](:I => 2, :τ => 2),
49+
),
5050
)
51-
eltypes = (Float64,) # no complex support yet
51+
eltypes = (Float64, ComplexF64)
5252

5353
@timedtestset "Mooncake - VectorInterface: $(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes
5454
atol = default_tol(T)

0 commit comments

Comments
 (0)