Skip to content

Commit 26c6c83

Browse files
committed
format
1 parent d4d6fe7 commit 26c6c83

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

test/ad.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ function FiniteDifferences.to_vec(t::TK.SectorDict)
4040
x = T <: Real ? x_real : reinterpret(T, x_real)
4141
ctr = 0
4242
return TK.SectorDict(c => (n = length(b);
43-
b′ = reshape(view(x, ctr .+ (1:n)), size(b)) ./
44-
sqrt(dim(c));
45-
ctr += n;
46-
b′)
47-
for (c, b) in t)
43+
b′ = reshape(view(x, ctr .+ (1:n)), size(b)) ./
44+
sqrt(dim(c));
45+
ctr += n;
46+
b′)
47+
for (c, b) in t)
4848
end
4949
return vec_real, from_vec
5050
end
@@ -135,7 +135,7 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
135135
ℂ[FibonacciAnyon](:I => 2, => 2)))
136136

137137
@timedtestset "Automatic Differentiation with spacetype $(TK.type_repr(eltype(V)))" verbose = true for V in
138-
Vlist
138+
Vlist
139139
eltypes = isreal(sectortype(eltype(V))) ? (Float64, ComplexF64) : (ComplexF64,)
140140
symmetricbraiding = BraidingStyle(sectortype(eltype(V))) isa SymmetricBraiding
141141

@@ -429,7 +429,7 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
429429
test_rrule(tsvd, B; atol, output_tangent=(ΔU, ΔS, ΔV, 0.0))
430430

431431
Vtrunc = spacetype(S)(TK.SectorDict(c => ceil(Int, size(b, 1) / 2)
432-
for (c, b) in blocks(S)))
432+
for (c, b) in blocks(S)))
433433

434434
U, S, V, ϵ = tsvd(B; trunc=truncspace(Vtrunc))
435435
ΔU = randn(scalartype(U), space(U))
@@ -448,7 +448,7 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
448448
test_rrule(tsvd, C; atol, output_tangent=(ΔU, ΔS, ΔV, 0.0))
449449

450450
c, = TK.MatrixAlgebra._argmax(x -> sqrt(dim(x[1])) * maximum(diag(x[2])),
451-
blocks(S))
451+
blocks(S))
452452
trunc = truncdim(round(Int, 2 * dim(c)))
453453
U, S, V, ϵ = tsvd(C; trunc)
454454
ΔU = randn(scalartype(U), space(U))

test/fusiontrees.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ println("Fusion Trees")
33
println("------------------------------------")
44
ti = time()
55
@timedtestset "Fusion trees for $(TK.type_repr(I))" verbose = true for I in
6-
sectorlist
7-
6+
sectorlist
87
Istr = TK.type_repr(I)
98
N = 5
109
out = ntuple(n -> randsector(I), N)

0 commit comments

Comments
 (0)