Skip to content

Commit

Permalink
Stop using IdDict on Reactant extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Oct 29, 2024
1 parent ca5ad64 commit 9e32ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/TenetReactantExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Reactant.make_tracer(seen, prev::Quantum, path::Tuple, mode::Reactant.T
return Quantum(tracetn, copy(prev.sites))
end

function Reactant.make_tracer(seen::IdDict, prev::Ansatz, path::Tuple, mode::Reactant.TraceMode; kwargs...)
function Reactant.make_tracer(seen, prev::Ansatz, path::Tuple, mode::Reactant.TraceMode; kwargs...)
tracetn = Reactant.make_tracer(seen, Quantum(prev), Reactant.append_path(path, :tn), mode; kwargs...)
return Ansatz(tracetn, copy(Tenet.lattice(prev)))
end
Expand Down

0 comments on commit 9e32ffd

Please sign in to comment.