Skip to content

Commit

Permalink
Remove duplicated merge method for Quantum Tensor Networks
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Sep 13, 2024
1 parent 8dad1f4 commit 2064d18
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Quantum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,6 @@ function LinearAlgebra.adjoint!(tn::AbstractQuantum)
return tn
end

"""
merge(a::Quantum, b::Quantum...)
Merges multiple [`Quantum`](@ref) Tensor Networks into a single one by connecting input/output sites.
"""
Base.merge(a::AbstractQuantum, others::AbstractQuantum...) = foldl(merge, others; init=a)

function Base.merge(a::AbstractQuantum, b::AbstractQuantum)
@assert issetequal(sites(a; set=:outputs), map(adjoint, sites(b; set=:inputs))) "Outputs of $a must match inputs of $b"

Expand Down

0 comments on commit 2064d18

Please sign in to comment.