@@ -134,21 +134,21 @@ end
134134
135135# TODO : remove once TensorKit supports this
136136_twist (t:: AbstractTensorMap , i:: Int ) = _twist (BraidingStyle (sectortype (t)), t, i)
137- _twist (:: SymmetricBraiding , t:: AbstractTensorMap , i:: Int ) = t
137+ _twist (:: Bosonic , t:: AbstractTensorMap , i:: Int ) = t
138138function _twist (:: NoBraiding , t:: AbstractTensorMap , i:: Int )
139- check_ambiguous_braiding (space (t, i))
139+ check_unambiguous_braiding (space (t, i))
140140 return t
141141end
142142_twist (:: BraidingStyle , t:: AbstractTensorMap , i:: Int ) = twist (t, i)
143143
144144# Verify that the braiding is unambiguous: either through symmetric braiding or because the
145145# sectors are all trivial
146- function check_ambiguous_braiding (:: Type{Bool} , V:: VectorSpace )
146+ function check_unambiguous_braiding (:: Type{Bool} , V:: VectorSpace )
147147 I = sectortype (V)
148148 BraidingStyle (I) isa SymmetricBraiding && return true
149149 return all (isone, sectors (V))
150150end
151- function check_ambiguous_braiding (V:: VectorSpace )
152- return check_ambiguous_braiding (Bool, V) ||
151+ function check_unambiguous_braiding (V:: VectorSpace )
152+ return check_unambiguous_braiding (Bool, V) ||
153153 throw (ArgumentError (" cannot unambiguously braid $V " ))
154154end
0 commit comments