Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Commit

Permalink
Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 1, 2020
1 parent 844a626 commit c4a50f3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
34 changes: 28 additions & 6 deletions src/YaoBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,35 @@ using Reexport
@reexport using YaoAPI
using YaoAPI

import YaoAPI: isunitary, isreflexive, iscommute,
AbstractRegister, AdjointRegister, AbstractBlock,
import YaoAPI:
isunitary,
isreflexive,
iscommute,
AbstractRegister,
AdjointRegister,
AbstractBlock,
PostProcess,
NotImplementedError, LocationConflictError, QubitMismatchError,
instruct!, focus!, relax!, nqubits, nremain, nactive, nbatch,
viewbatch, addbits!, insert_qubits!, measure, measure!,
occupied_locs, invorder!, partial_tr, select!, ρ, reorder!
NotImplementedError,
LocationConflictError,
QubitMismatchError,
instruct!,
focus!,
relax!,
nqubits,
nremain,
nactive,
nbatch,
viewbatch,
addbits!,
insert_qubits!,
measure,
measure!,
occupied_locs,
invorder!,
partial_tr,
select!,
ρ,
reorder!
export basis, ishermitian

include("utils/ast_tools.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/utils/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function BitBasis.unsafe_reorder(A::PermMatrix, orders::NTuple{N,<:Integer}) whe
perm = similar(A.perm)
vals = similar(A.vals)

@simd for i in 1:length(perm)
@simd for i = 1:length(perm)
@inbounds perm[od[i]] = od[A.perm[i]]
@inbounds vals[od[i]] = A.vals[i]
end
Expand Down
1 change: 0 additions & 1 deletion test/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ using LuxurySparse: pmrand
@test reorder(PC PB PA, [3, 1, 2]) PB PA PC
@test invorder(PC PB PA) PA PB PC
end

0 comments on commit c4a50f3

Please sign in to comment.