Skip to content

Commit 044d1c4

Browse files
committed
remove _project_hermitian
1 parent a70276a commit 044d1c4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

test/chainrules/factorizations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ for V in spacelist
130130
remove_eighgauge_dependence!(Δv, d, v)
131131

132132
# necessary for FiniteDifferences to not complain
133-
eigh_full′ = eigh_full _project_hermitian
133+
eigh_full′ = eigh_full project_hermitian
134134

135135
test_ad_rrule(eigh_full′, t; output_tangent = (Δd, Δv), atol, rtol)
136136
test_ad_rrule(first eigh_full′, t; output_tangent = Δd, atol, rtol)

test/setup.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂, VfSU₂,
1010
export default_spacelist, factorization_spacelist, ad_spacelist
1111
export remove_qrgauge_dependence!, remove_lqgauge_dependence!
1212
export remove_eiggauge_dependence!, remove_eighgauge_dependence!, remove_svdgauge_dependence!
13-
export test_ad_rrule, _project_hermitian
13+
export test_ad_rrule
1414
export _isunitary, _isone
1515

1616
using Random
@@ -410,7 +410,4 @@ function test_ad_rrule(f, args...; check_inferred = false, kwargs...)
410410
return nothing
411411
end
412412

413-
# project_hermitian is non-differentiable for now
414-
_project_hermitian(x) = (x + x') / 2
415-
416413
end

0 commit comments

Comments
 (0)