Skip to content

Commit

Permalink
Change equality check to egality
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Nov 2, 2024
1 parent 28e8594 commit 5dd98c6
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 @@ -438,7 +438,7 @@ function Base.replace!(tn::AbstractTensorNetwork, pair::Pair{<:Tensor,<:Tensor})
tn = TensorNetwork(tn)
old_tensor, new_tensor = pair

old_tensor == new_tensor && return tn
old_tensor === new_tensor && return tn

issetequal(inds(new_tensor), inds(old_tensor)) || throw(ArgumentError("replacing tensor indices don't match"))

Expand Down

0 comments on commit 5dd98c6

Please sign in to comment.