Skip to content

Commit 5da692f

Browse files
committed
get isone to return true or false for IsingBimodule
1 parent c253ed7 commit 5da692f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/multifusion.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ function Base.one(a::IsingBimodule)
8282
return IsingBimodule(a.row, a.col, 0)
8383
end
8484

85+
# Base.isone(a::IsingBimodule) = leftone(a) == a == rightone(a)
86+
8587
function Base.one(::Type{IsingBimodule})
8688
throw(ArgumentError("one of Type IsingBimodule doesn't exist"))
8789
end

0 commit comments

Comments
 (0)