Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Dec 7, 2023
1 parent cfcaaf4 commit 4804976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand All @@ -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

Expand Down

0 comments on commit 4804976

Please sign in to comment.