Skip to content

Commit

Permalink
Change copy inside conj function to deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Nov 5, 2024
1 parent a432fa3 commit 7d6ec08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TensorNetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Base.eltype(tn::AbstractTensorNetwork) = promote_type(eltype.(tensors(tn))...)
Return a copy of the [`AbstractTensorNetwork`](@ref) with all tensors conjugated.
"""
function Base.conj(tn::AbstractTensorNetwork)
tn = copy(tn)
tn = deepcopy(tn)
replace!(tn, tensors(tn) .=> conj.(tensors(tn)))
return tn
end
Expand Down

0 comments on commit 7d6ec08

Please sign in to comment.