Skip to content

Commit

Permalink
Seperate pakage (#39)
Browse files Browse the repository at this point in the history
* fix measure doc

* rm macrotools

* back up

* YaoAPI

* update project.toml

* update project.toml
  • Loading branch information
GiggleLiu authored May 30, 2020
1 parent d7d7fe4 commit 807b124
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 497 deletions.
9 changes: 5 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name = "YaoBase"
uuid = "a8f54c17-34bc-5a9d-b050-f522fe3f755f"
version = "0.13.3"
version = "0.14.0"

[deps]
BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf"
LegibleLambdas = "f1f30506-32fe-5131-bd72-7c197988f9e5"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LuxurySparse = "d05aeea4-b7d4-55ac-b691-9e7fabb07ba2"
MLStyle = "d8e11817-5142-5d16-987a-aa16d5891078"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TupleTools = "9d95972d-f1c8-5527-a6e0-b4b365fa01f6"
YaoAPI = "0843a435-28de-4971-9e8b-a9641b2983a8"

[compat]
BitBasis = "0.6"
LegibleLambdas = "0.2"
LuxurySparse = "0.5, 0.6"
MLStyle = "0.3, 0.4"
MacroTools = "0.5"
TupleTools = "1.1.0"
julia = "1"
YaoAPI = "0.1"
Reexport = "0.2"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
14 changes: 13 additions & 1 deletion src/YaoBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@ Base module for Yao.
module YaoBase

using LinearAlgebra, LuxurySparse, SparseArrays, Random
using Reexport

@reexport using YaoAPI
using YaoAPI

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!
export basis, ishermitian

include("utils/ast_tools.jl")

include("utils/constants.jl")
include("utils/math.jl")
include("utils/interface.jl")

include("error.jl")
include("abstract_register.jl")
Expand Down
Loading

0 comments on commit 807b124

Please sign in to comment.