Skip to content

Commit c461c36

Browse files
committed
move use to export; fix doc
1 parent edcf9d0 commit c461c36

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/src/graphs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# [Graph States](@id Graph-States)
22

3+
```@meta
4+
DocTestSetup = quote
5+
using QuantumClifford
6+
end
7+
```
8+
39
!!! warning "The `graphstate` API is not considered stable"
410
`graphstate` returns a lot of information about encoding a given stabilizer state in a graph. A different API is being designed that streamlines the work with graph states.
511

src/QuantumClifford.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ include("useful_states.jl")
14521452
include("experimental/Experimental.jl")
14531453
#
14541454
include("./graphs/graphs.jl")
1455-
using .GraphSim: graphstate, graphstate!, graph_gatesequence, graph_gate
1455+
using .GraphSim
14561456
#
14571457
include("entanglement.jl")
14581458
#

src/graphs/graphs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module GraphSim
22

3+
export graphstate, graphstate!, graph_gatesequence, graph_gate
4+
35
import Graphs: Graphs, nv, AbstractGraph
46
using QuantumClifford
57
using QuantumClifford: AbstractStabilizer

0 commit comments

Comments
 (0)