Skip to content

Commit de7b361

Browse files
committed
remove spinmatrices type restriction
1 parent ad90666 commit de7b361

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)