Skip to content

Commit 73812a9

Browse files
committed
Clean up exports
1 parent 9db6d55 commit 73812a9

File tree

4 files changed

+2
-61
lines changed

4 files changed

+2
-61
lines changed

src/ITensors.jl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ include("lib/LazyApply/src/LazyApply.jl")
5858
# TODO: `using .LazyApply: LazyApply, ...`.
5959
using .LazyApply
6060
using .LazyApply: Prod, Scaled, Sum, coefficient
61-
export Prod, Scaled, Sum, coefficient
6261
include("lib/Ops/src/Ops.jl")
6362
# TODO: `using .Ops: Ops, ...`.
6463
using .Ops
6564
using .Ops: Ops, Op, Trotter
6665
import .Ops: sites, name
67-
export Ops, Op, Trotter
6866
include("exports.jl")
6967
include("imports.jl")
7068
include("global_variables.jl")
@@ -129,21 +127,6 @@ using .SiteTypes:
129127
op!,
130128
ops,
131129
state
132-
export OpName,
133-
SiteType,
134-
StateName,
135-
TagType,
136-
ValName,
137-
@OpName_str,
138-
@SiteType_str,
139-
@StateName_str,
140-
@TagType_str,
141-
@ValName_str,
142-
has_fermion_string,
143-
op,
144-
ops,
145-
state,
146-
val
147130
include("lib/ITensorsSiteTypesExt/src/ITensorsSiteTypesExt.jl")
148131
include("broadcast.jl")
149132
include("tensor_operations/matrix_decomposition.jl")
@@ -170,12 +153,6 @@ using .ITensorVisualizationCore:
170153
@visualize_noeval!,
171154
@visualize_sequence,
172155
@visualize_sequence_noeval
173-
export @visualize,
174-
@visualize!,
175-
@visualize_noeval,
176-
@visualize_noeval!,
177-
@visualize_sequence,
178-
@visualize_sequence_noeval
179156
include("deprecated.jl")
180157
include("argsdict/argsdict.jl")
181158
include("packagecompile/compile.jl")

src/deprecated.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,5 @@
3030
@deprecate setstore(T::ITensor, st) setstorage(T, st) false
3131
@deprecate uniqueindex(args...; kwargs...) uniqueind(args...; kwargs...)
3232

33-
# physics/autompo.jl
34-
@deprecate toMPO(args...; kwargs...) MPO(args...; kwargs...)
35-
3633
# qn/qn.jl
3734
@deprecate store(qn::QN) data(qn)

src/exports.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export
125125
diagitensor,
126126
diag_itensor,
127127
directsum,
128+
dot,
128129
eachnzblock,
129130
firstind,
130131
filterinds,
@@ -188,10 +189,6 @@ export
188189
# Methods
189190
addtags,
190191
hastags,
191-
# physics/autompo.jl
192-
AutoMPO,
193-
OpSum,
194-
add!,
195192
# qn/qnindex.jl
196193
blockdim,
197194
flux,

test/base/utils/TestITensorsExportedNames/TestITensorsExportedNames.jl

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,11 @@ open("itensors_exported_names.jl", "w") do io
99
end
1010
=#
1111
const ITENSORS_EXPORTED_NAMES = [
12-
Symbol("@OpName_str"),
13-
Symbol("@SiteType_str"),
14-
Symbol("@StateName_str"),
15-
Symbol("@TagType_str"),
16-
Symbol("@ValName_str"),
1712
Symbol("@disable_warn_order"),
1813
Symbol("@reset_warn_order"),
1914
Symbol("@set_warn_order"),
2015
Symbol("@ts_str"),
21-
Symbol("@visualize"),
22-
Symbol("@visualize!"),
23-
Symbol("@visualize_noeval"),
24-
Symbol("@visualize_noeval!"),
25-
Symbol("@visualize_sequence"),
26-
Symbol("@visualize_sequence_noeval"),
2716
:Apply,
28-
:AutoMPO,
2917
:Block,
3018
:ITensor,
3119
:ITensors,
@@ -34,23 +22,10 @@ const ITENSORS_EXPORTED_NAMES = [
3422
:IndexVal,
3523
:LinearAlgebra,
3624
:NDTensors,
37-
:Op,
38-
:OpName,
39-
:OpSum,
40-
:Ops,
4125
:Order,
42-
:Prod,
4326
:QN,
44-
:Scaled,
45-
:SiteType,
4627
:Spectrum,
47-
:StateName,
48-
:Sum,
4928
:TagSet,
50-
:TagType,
51-
:Trotter,
52-
:ValName,
53-
:add!,
5429
:addblock!,
5530
:addtags,
5631
:addtags!,
@@ -63,7 +38,6 @@ const ITENSORS_EXPORTED_NAMES = [
6338
:blockdim,
6439
:blockoffsets,
6540
:checkflux,
66-
:coefficient,
6741
:combinedind,
6842
:combiner,
6943
:commonind,
@@ -87,6 +61,7 @@ const ITENSORS_EXPORTED_NAMES = [
8761
:directsum,
8862
:disable_tblis!,
8963
:disable_warn_order!,
64+
:dot,
9065
:eachindval,
9166
:eachnzblock,
9267
:eachval,
@@ -107,7 +82,6 @@ const ITENSORS_EXPORTED_NAMES = [
10782
:getfirst,
10883
:getindex,
10984
:hadamard_product,
110-
:has_fermion_string,
11185
:hascommoninds,
11286
:hasid,
11387
:hasind,
@@ -152,8 +126,6 @@ const ITENSORS_EXPORTED_NAMES = [
152126
:nzblock,
153127
:nzblocks,
154128
:onehot,
155-
:op,
156-
:ops,
157129
:order,
158130
:permute,
159131
:plev,
@@ -202,7 +174,6 @@ const ITENSORS_EXPORTED_NAMES = [
202174
:siteindex,
203175
:space,
204176
:splitblocks,
205-
:state,
206177
:storage,
207178
:store,
208179
:svd,
@@ -214,7 +185,6 @@ const ITENSORS_EXPORTED_NAMES = [
214185
:swaptags,
215186
:swaptags!,
216187
:tags,
217-
:toMPO,
218188
:tr,
219189
:transpose,
220190
:truncerror,

0 commit comments

Comments
 (0)