Skip to content

Commit bfbcecd

Browse files
authored
Merge pull request #9 from JuliaQX/change-pkg-name
Change package name to QXTools
2 parents acf185d + 2ca28e4 commit bfbcecd

14 files changed

+54
-129
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
version:
1313
- '1.6'
1414
os:
15-
- ubuntu-latest
15+
- ubuntu-latest
1616
arch:
1717
- x64
1818
steps:
@@ -52,12 +52,12 @@ jobs:
5252
Pkg.instantiate()
5353
Pkg.add("Documenter")
5454
Pkg.add("DataFrames")
55-
Pkg.add("Latexify")'
55+
Pkg.add("Latexify")'
5656
- run: |
5757
julia --project -e '
5858
using Documenter: doctest
59-
using QXSim
60-
doctest(QXSim)'
59+
using QXTools
60+
doctest(QXTools)'
6161
- run: julia --project docs/make.jl
6262
env:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "QXSim"
1+
name = "QXTools"
22
uuid = "84f0eee1-10ae-40da-994b-b9d0e53829ae"
33
authors = ["QuantEx team"]
44
version = "0.1.7"

bin/prepare_rqc_simulation_files.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using QXSim
2-
using QXSim.Circuits
1+
using QXTools
2+
using QXTools.Circuits
33
using ArgParse
44
using Logging
55

docs/arch.puml

Lines changed: 0 additions & 75 deletions
This file was deleted.

docs/make.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
push!(LOAD_PATH, "../")
2-
using QXSim, Documenter
2+
using QXTools, Documenter
33

44
makedocs(;
5-
modules=[QXSim],
5+
modules=[QXTools],
66
authors="QuantEx team",
7-
repo="https://github.com/JuliaQX/QXSim.jl/blob/{commit}{path}#L{line}",
8-
sitename="QXSim.jl",
7+
repo="https://github.com/JuliaQX/QXTools.jl/blob/{commit}{path}#L{line}",
8+
sitename="QXTools.jl",
99
format=Documenter.HTML(;
1010
prettyurls=get(ENV, "CI", "false") == "true",
11-
canonical="https://JuliaQX.github.io/QXSim.jl",
11+
canonical="https://JuliaQX.github.io/QXTools.jl",
1212
assets=String[],
1313
),
1414
pages=[
@@ -21,5 +21,5 @@ makedocs(;
2121
)
2222

2323
deploydocs(;
24-
repo="github.com/JuliaQX/QXSim.jl",
24+
repo="github.com/JuliaQX/QXTools.jl",
2525
)

docs/src/getting_started.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
## Installation
44

5-
QXSim is a Julia package and can be installed using Julia's inbuilt package manager from the Julia REPL using.
5+
QXTools is a Julia package and can be installed using Julia's inbuilt package manager from the Julia REPL using.
66

77
```
88
import Pkg
9-
Pkg.add("QXSim")
9+
Pkg.add("QXTools")
1010
```
1111

1212
## Example usage
1313

14-
An example of how QXSim can be used to calculate a set of amplitudes for small GHZ preparation circuit looks like
14+
An example of how QXTools can be used to calculate a set of amplitudes for small GHZ preparation circuit looks like
1515

1616
```
17-
using QXSim
18-
using QXSim.Circuits
17+
using QXTools
18+
using QXTools.Circuits
1919
using QXTns
2020
using QXGraphDecompositions
2121
@@ -29,18 +29,18 @@ tnc = convert_to_tnc(circ)
2929
plan = quickbb_contraction_plan(tnc)
3030
3131
# Contract the network using this plan to find the given amplitude for different outputs
32-
@show QXSim.single_amplitude(tnc, plan, "000")
33-
@show QXSim.single_amplitude(tnc, plan, "111")
34-
@show QXSim.single_amplitude(tnc, plan, "100")
32+
@show QXTools.single_amplitude(tnc, plan, "000")
33+
@show QXTools.single_amplitude(tnc, plan, "111")
34+
@show QXTools.single_amplitude(tnc, plan, "100")
3535
```
3636

3737
This is only recommended for small test cases. For larger scale runs one can call the `generate_simulation_files`
3838
which will do the conversion to a network, find the contraction plan and create output files describing the required
3939
calculations. For example
4040

4141
```
42-
using QXSim
43-
using QXSim.Circuits
42+
using QXTools
43+
using QXTools.Circuits
4444
4545
# Create ghz circuit
4646
circ = create_ghz_circuit(3)

docs/src/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
```@meta
2-
CurrentModule = QXSim
2+
CurrentModule = QXTools
33
```
44

5-
# QXSim
5+
# QXTools
66

7-
QXSim is a Julia package for simulating quantum circuits using tensor network approaches and targets large distibuted memory clusters with hardware
7+
QXTools is a Julia package for simulating quantum circuits using tensor network approaches and targets large distibuted memory clusters with hardware
88
accelerators. It was developed as part of the QuantEx project, one of the individual software projects of WP8 of [PRACE](https://prace-ri.eu/) 6IP.
99

10-
QXSim ties together a number of other Julia packages which are also part of the QuantEx project. These include QXZoo for
10+
QXTools ties together a number of other Julia packages which are also part of the QuantEx project. These include QXZoo for
1111
generating and manipulating quantum circuits, QXTns for representing and manipulating tensor networks,
1212
QXGraphDecompositions which implements a number of graph algorithms for finding good contraction plans and finally QXRun which is designed to run on large distributed
13-
clusters and carry out the computations using input files generated using QXSim.
13+
clusters and carry out the computations using input files generated using QXTools.
1414

15-
The design and implementation of QXSim and related packages was inspired by many other frameworks and packages including ITensors, TensorOperations.jl, OMEinsum.jl, Yao.jl, TAL-SH and ExaTN.
15+
The design and implementation of QXTools and related packages was inspired by many other frameworks and packages including ITensors, TensorOperations.jl, OMEinsum.jl, Yao.jl, TAL-SH and ExaTN.
1616

1717
## Where to begin
1818

19-
For getting QXSim installed and setup, see the [Getting Started](@ref) section which has instructions on how to install QXSim and some hello world examples.
20-
The "Tutorials" section contains some more indepth examples and the "Users Guide" has more details of the design and structure of QXSim.
19+
For getting QXTools installed and setup, see the [Getting Started](@ref) section which has instructions on how to install QXTools and some hello world examples.
20+
The "Tutorials" section contains some more indepth examples and the "Users Guide" has more details of the design and structure of QXTools.
2121

2222
```@contents
2323
Pages = ["users_guide.md"]

docs/src/users_guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# User's Guide
22

3-
QXSim generates output files which provide a description of the computations and data
3+
QXTools generates output files which provide a description of the computations and data
44
required to perform the simulation. There are three output files:
55

66
- Parameter file: This YAML file provides informations on the sliced edges and dimensions as well
@@ -57,14 +57,14 @@ different processes/nodes with a reduction operation performed on the scalars re
5757

5858
## DSL Specification
5959

60-
A Domain Specific Language (DSL) has been defined when enables better separation
60+
A Domain Specific Language (DSL) has been defined when enables better separation
6161
of concerns between the components. This DSL describes a contraction over a tensor
6262
network to calculate observables of interest in the form of a sequence of instructions
6363
which act on individual tensors. This makes it possible to separate the development
6464
of the high performance distributed tensor network computation code from that of the
65-
higher level contraction planning, circuit and and network manipulation code. For QXSim
65+
higher level contraction planning, circuit and and network manipulation code. For QXTools
6666
DSL files the ".qx" suffix is used for "Tensor Language". We will first show a very
67-
simple example of a QXSim DSL file and then descibe in detail how each of the
67+
simple example of a QXTools DSL file and then descibe in detail how each of the
6868
instructions work.
6969

7070
### Example DSL file

src/QXSim.jl renamed to src/QXTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module QXSim
1+
module QXTools
22
using Logging
33
import QXZoo
44
import DataStructures: OrderedDict

src/tn_conversion.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export convert_to_tnc
77
"""
88
_convert_to_tnc(circ::QXZoo.Circuit.Circ; kwargs...)
99
10-
Function to convert a QXZoo circuit to a QXSim tensor network circuit
10+
Function to convert a QXZoo circuit to a QXTools tensor network circuit
1111
"""
1212
function _convert_to_tnc(circ::QXZoo.Circuit.Circ; kwargs...)
1313
tnc = TensorNetworkCircuit(circ.num_qubits)
@@ -27,7 +27,7 @@ convert_to_tnc(circ::QXZoo.Circuit.Circ;
2727
no_output::Bool=false,
2828
kwargs...)
2929
30-
Function to convert a QXZoo circuit to a QXSim tensor network circuit
30+
Function to convert a QXZoo circuit to a QXTools tensor network circuit
3131
"""
3232
function convert_to_tnc(circ::QXZoo.Circuit.Circ;
3333
input::Union{String, Nothing}=nothing,

0 commit comments

Comments
 (0)