diff --git a/src/Array.jl b/src/Array.jl index 125e1f4..712ee26 100644 --- a/src/Array.jl +++ b/src/Array.jl @@ -119,7 +119,7 @@ function Matrix{T}(g::Gate{<:Control}) where {T} return M end -function Base.rand(::Type{SU{N}}, lanes::NTuple{M, Int}; eltype::Type = ComplexF64) where {N, M} +function Base.rand(::Type{SU{N}}, lanes::NTuple{M,Int}; eltype::Type = ComplexF64) where {N,M} # keep unitary matrix Q from QR decomposition q, _ = qr(rand(eltype, N, N)) @@ -128,7 +128,7 @@ end Base.rand(::Type{Gate{SU{N}}}, lanes::Integer...; kwargs...) where {N} = rand(SU{N}, lanes; kwargs...) -function Matrix{T}(g::Gate{<:SU{N}}) where {T, N} +function Matrix{T}(g::Gate{<:SU{N}}) where {T,N} return g.array |> Matrix{T} end