description:
smerge merges a sequence into a single ket
smerge["str"] merges a sequence into a single ket, separated by the str string
examples:
smerge (|F> . |r> . |e> . |d>)
|Fred>
smerge[", "] (|a> . |b> . |c> . |d>)
|a, b, c, d>
-- NB: the dot in there
-- ie, this is a sequence of two superpositions
smerge[", "] (|a> + |b> + |c> . |d> + |e>)
|a, b, c, d, e>
smerge["
"] (|b> . |c> . |> . |d>)
|b
c
d>
see also:
ssplit