Skip to content

Commit

Permalink
Try fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed May 14, 2024
1 parent 2eeb1b8 commit ae96276
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/lib/ITensorMPS/ext/ITensorMPSChainRulesCoreExt/abstractmps.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
using Adapt: adapt
using ChainRulesCore: ChainRulesCore, HasReverseMode, NoTangent, RuleConfig, rrule_via_ad
using ITensors:
ITensors,
ITensor,
apply,
dag,
hassameinds,
inds,
inner,
itensor,
mapprime,
replaceprime,
swapprime
using ITensors.ITensorMPS: MPO, MPS, siteinds
ITensors, ITensor, dag, hassameinds, inds, itensor, mapprime, replaceprime, swapprime
using ITensors.ITensorMPS: ITensorMPS, MPO, MPS, apply, inner, siteinds
using NDTensors: datatype

function ChainRulesCore.rrule(
Expand Down Expand Up @@ -196,7 +186,7 @@ function ChainRulesCore.rrule(
end
y = typeof(x)(y_data)
if !set_limits
y = ITensors.set_ortho_lims(y, ortho_lims(x))
y = ITensorMPS.set_ortho_lims(y, ortho_lims(x))
end
return y, map_pullback
end

0 comments on commit ae96276

Please sign in to comment.