Skip to content

Commit

Permalink
rm cacheservers
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Jun 29, 2018
1 parent ef0206c commit 7da065a
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 294 deletions.
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
julia 0.6
Compat
DataStructures
CacheServers
StaticArrays
MacroTools
Reexport
Expand Down
4 changes: 2 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Documenter
using Yao, Yao.Blocks, Yao.LuxurySparse, Yao.CacheServers, Yao.Intrinsics, Yao.Registers, Yao.Interfaces
using Yao, Yao.Blocks, Yao.LuxurySparse, Yao.Intrinsics, Yao.Registers, Yao.Interfaces

# TODO: use Literate to process examples
# using Literate
# preprocess tutorial scripts

# make documents
makedocs(
modules = [Yao, Yao.Blocks, Yao.LuxurySparse, Yao.CacheServers, Yao.Intrinsics, Yao.Registers, Yao.Interfaces],
modules = [Yao, Yao.Blocks, Yao.LuxurySparse, Yao.Intrinsics, Yao.Registers, Yao.Interfaces],
clean = false,
format = :html,
sitename = "Yao.jl",
Expand Down
6 changes: 4 additions & 2 deletions src/Blocks/Blocks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ using Compat.Iterators
using Compat.LinearAlgebra
using Compat.SparseArrays
using Lazy: @forward
using CacheServers

using ..Intrinsics
using ..Registers
using ..LuxurySparse
using ..CacheServers


# import package APIs
import ..Yao
import ..Yao: DefaultType, nqubits, nactive, invorder
import ..Registers: focus!, relax!
import ..Intrinsics: ishermitian, isunitary, isreflexive
import ..CacheServers: update!, iscached, clear!, pull, iscacheable

import CacheServers: update!, iscached, clear!, pull, iscacheable
import Base: copy, hash, ==, eltype, show, similar, getindex, setindex!, start, next, done, length, parent
import Compat: adjoint

Expand Down
33 changes: 0 additions & 33 deletions src/CacheServers/CacheServers.jl

This file was deleted.

82 changes: 0 additions & 82 deletions src/CacheServers/Core.jl

This file was deleted.

52 changes: 0 additions & 52 deletions src/CacheServers/Default.jl

This file was deleted.

3 changes: 2 additions & 1 deletion src/Interfaces/Interfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ using Reexport
using ..Registers
using ..Blocks
using ..Blocks: _blockpromote
using ..CacheServers
using ..Intrinsics

using CacheServers

# import package configs
import ..Yao: DefaultType

Expand Down
1 change: 0 additions & 1 deletion src/Yao.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ end
include("APIs.jl")

include("LuxurySparse/LuxurySparse.jl")
include("CacheServers/CacheServers.jl")

include("Intrinsics/Intrinsics.jl")
include("Registers/Registers.jl")
Expand Down
2 changes: 1 addition & 1 deletion test/Blocks/CacheFragment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Compat
using Compat.Test

using Yao.Blocks
using Yao.CacheServers
using CacheServers
using Yao.LuxurySparse

@testset "constructor" begin
Expand Down
2 changes: 1 addition & 1 deletion test/Blocks/CachedBlock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Compat.Test

using Yao
using Yao.Blocks
using Yao.CacheServers
using CacheServers
using Yao.LuxurySparse

s = DefaultServer{MatrixBlock, CacheFragment}()
Expand Down
20 changes: 0 additions & 20 deletions test/CacheServers/CacheServers.jl

This file was deleted.

25 changes: 0 additions & 25 deletions test/CacheServers/Core.jl

This file was deleted.

33 changes: 0 additions & 33 deletions test/CacheServers/Default.jl

This file was deleted.

37 changes: 0 additions & 37 deletions test/CacheServers/TestFragment.jl

This file was deleted.

4 changes: 0 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ end
include("Blocks/Blocks.jl")
end

@testset "cache" begin
include("CacheServers/CacheServers.jl")
end

@testset "boost" begin
include("Boost/Boost.jl")
end
Expand Down

0 comments on commit 7da065a

Please sign in to comment.