bsc-quantic / Tenet.jl

Composable Tensor Network library in Julia
https://bsc-quantic.github.io/Tenet.jl/
Apache License 2.0
17 stars 1 forks source link

Rename `append!` to `merge!` #102

Closed mofeing closed 8 months ago

mofeing commented 9 months ago

Base.append! is thought for ordered collections like Vector, while Base.merge! is thought for key-indexed collections like Dict. Our TensorNetwork type resembles more a Dict since Tensors are not ordered and are key-indexed, so semantically makes more sense to use merge!.

mofeing commented 8 months ago

Already fixed in some past commit.