Skip to content

Commit d8e3658

Browse files
committed
[DOCS] Fix ITensors.compile docs
1 parent 88f7d3e commit d8e3658

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensors"
22
uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5"
33
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"]
4-
version = "0.7.10"
4+
version = "0.7.11"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

docs/src/AdvancedUsageGuide.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,15 +818,19 @@ called a "custom system image", a custom version of Julia that
818818
includes a compiled version of ITensors (see the [PackageCompiler documentation](https://julialang.github.io/PackageCompiler.jl/dev/) for more details).
819819
820820
!!! compat "ITensors 0.7"
821-
As of ITensors 0.7, you must now install and load the
821+
As of ITensors 0.7, you must now install and load both the
822822
[ITensorMPS.jl](https://github.com/ITensor/ITensorMPS.jl) package
823-
in order to use `ITensors.compile()`, since it relies on running MPS/MPO
824-
functionality as example code for Julia to compile.
823+
and the [PackageCompiler.jl](https://github.com/JuliaLang/PackageCompiler.jl)
824+
package in order to use `ITensors.compile()`, since it relies on running MPS/MPO
825+
functionality as example code for Julia to compile and is based in a package
826+
extension in order to make `PackageCompiler.jl` an optional dependency.
825827
826828
Just run the commands:
827829
```
828830
julia> using ITensors, ITensorMPS
829831

832+
julia> using PackageCompiler
833+
830834
julia> ITensors.compile()
831835
[...]
832836
```

src/packagecompile/compile.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,19 @@ end
4444
ITensors.compile(; dir = "$(default_compile_dir())",
4545
filename = "$(default_compile_filename())")
4646
47-
Compile ITensors.jl with [PackageCompiler](https://julialang.github.io/PackageCompiler.jl/dev/).
47+
Compile ITensors.jl with [PackageCompiler.jl](https://julialang.github.io/PackageCompiler.jl/dev/).
4848
This will take some time, perhaps a few minutes.
4949
5050
This will create a system image containing the compiled version of ITensors
5151
located at `dir/filename`, by default `$(default_compile_path())`.
5252
5353
!!! compat "ITensors 0.7"
54-
As of ITensors 0.7, you must now install and load the
54+
As of ITensors 0.7, you must now install and load both the
5555
[ITensorMPS.jl](https://github.com/ITensor/ITensorMPS.jl) package
56-
in order to use `ITensors.compile()`, since it relies on running MPS/MPO
57-
functionality as example code for Julia to compile.
56+
and the [PackageCompiler.jl](https://github.com/JuliaLang/PackageCompiler.jl)
57+
package in order to use `ITensors.compile()`, since it relies on running MPS/MPO
58+
functionality as example code for Julia to compile and is based in a package
59+
extension in order to make `PackageCompiler.jl` an optional dependency.
5860
5961
$(compile_note())
6062
""" compile

0 commit comments

Comments
 (0)