Skip to content

Commit 0d6c089

Browse files
authored
remove spinmatrices type restriction (#73)
1 parent ad90666 commit 0d6c089

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/operators/spinoperators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ end
1717
1818
the spinmatrices according to [Wikipedia](https://en.wikipedia.org/wiki/Spin_(physics)#Higher_spins).
1919
"""
20-
function spinmatrices(s::Union{Rational{Int}, Int}, elt = ComplexF64)
20+
function spinmatrices(s, elt = ComplexF64)
2121
N = Int(2 * s)
2222

2323
Sx = zeros(elt, N + 1, N + 1)

0 commit comments

Comments
 (0)