Optionally choose whether merge!
preserves involved output indices of first Quantum
or last Quantum
#243
Labels
merge!
preserves involved output indices of first Quantum
or last Quantum
#243
Currently, in
simple_update!
forAbstractAnsatz
, we need to manually do the reindexing because we want to preserve the output indices of the firstAbstractQuantum
TN butmerge!(::AbstractQuantu, ::AbstractQuantum)
preserves the output indices of the lastQuantum
.Giving users this options would simplify the 2-site
simple_update!
implementation and avoid some bugs.The text was updated successfully, but these errors were encountered: