We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad90666 commit 0d6c089Copy full SHA for 0d6c089
1 file changed
src/operators/spinoperators.jl
@@ -17,7 +17,7 @@ end
17
18
the spinmatrices according to [Wikipedia](https://en.wikipedia.org/wiki/Spin_(physics)#Higher_spins).
19
"""
20
-function spinmatrices(s::Union{Rational{Int}, Int}, elt = ComplexF64)
+function spinmatrices(s, elt = ComplexF64)
21
N = Int(2 * s)
22
23
Sx = zeros(elt, N + 1, N + 1)
0 commit comments