Skip to content

Commit 73e45d8

Browse files
committed
fix warning of MakieExt weight_plot
1 parent 307aa10 commit 73e45d8

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

docs/Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[deps]
2-
BinaryProvider = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
32
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
3+
BinaryProvider = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
44
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
55
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
66
CodingTheory = "7ca085cf-10e4-43da-ad7d-8f62f68877b3"
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
88
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
99
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
10+
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1011
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
1112
Hecke = "3e1990a7-5d81-5526-99ce-9ba3ff248f21"
1213
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

ext/MakieExt/Classical/Tanner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# LICENSE file in the root directory of this source tree.
66

77
"""
8-
Tanner_graph_plot(H::Union{CTMatrixTypes, Matrix{Int}})
8+
$TYPEDSIGNATURES
99
1010
Return the Tanner graph of the matrix `H` as a `Figure` object.
1111

ext/MakieExt/Classical/weight_dist.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#############################
1010

1111
"""
12-
weight_plot(C::AbstractLinearCode; alg::Symbol = :auto)
12+
$TYPEDSIGNATURES
1313
1414
Return a bar graph of the weight distribution of `C`.
1515

ext/MakieExt/LDPC/analysis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#############################
1010

1111
"""
12-
EXIT_chart_plot(E::LDPCEnsemble, Ch::AbstractClassicalNoiseChannel; tol::Float64 = 1e-9)
12+
$TYPEDSIGNATURES
1313
1414
Return a plot of the EXIT chart for the ensemble given the channel up to a numerical tolerance of `tol`.
1515

ext/MakieExt/LDPC/codes.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#############################
1010

1111
"""
12-
degree_distributions_plot(C::AbstractLDPCCode)
12+
$TYPEDSIGNATURES
1313
1414
Return a bar plot of the column and row degree distributions of `C`.
1515
@@ -44,7 +44,7 @@ function CodingTheory.degree_distributions_plot(C::AbstractLDPCCode)
4444
end
4545

4646
"""
47-
count_short_cycles_plot(C::AbstractLDPCCode)
47+
$TYPEDSIGNATURES
4848
4949
Return a bar graph and a dictionary of (length, count) pairs for unique short
5050
cycles in the Tanner graph of `C`. An empty graph and dictionary are returned
@@ -82,7 +82,7 @@ function CodingTheory.count_short_cycles_plot(C::AbstractLDPCCode)
8282
end
8383

8484
"""
85-
count_elementary_cycles_plot(C::AbstractLDPCCode)
85+
$TYPEDSIGNATURES
8686
8787
Return a bar graph and a dictionary of (length, count) pairs for unique elementary
8888
cycles in the Tanner graph of `C`. An empty graph and dictionary are returned
@@ -120,7 +120,7 @@ function CodingTheory.count_elementary_cycles_plot(C::AbstractLDPCCode)
120120
end
121121

122122
"""
123-
ACE_spectrum(C::AbstractLDPCCode)
123+
$TYPEDSIGNATURES
124124
125125
Return an interactive figure and data for the ACE spectrum of the Tanner graph of `C`.
126126
@@ -171,7 +171,7 @@ end
171171
# doesn't seem to be a point in making this dynamic with a slider, as it simply
172172
# continues in the same tree shape and no useful information is gained from watching it
173173
"""
174-
computation_graph(C::AbstractLDPCCode, lvl::Int, v::Int, v_type::Symbol=:v)
174+
$TYPEDSIGNATURES
175175
176176
Return a figure representing the expansion of the Tanner graph of `C` to level `lvl`
177177
for node `v`. If `v_type` is `:v`, `v` is interpreted as a variable node; otherwise,

ext/MakieExt/Quantum/weight_dist.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#############################
1010

1111
"""
12-
weight_plot(S::AbstractStabilizerCode; alg::Symbol = :auto, type::Symbol = :stabilizer)
12+
$TYPEDSIGNATURES
1313
1414
Return a bar graph of the weight distribution related to `S`.
1515
@@ -49,7 +49,7 @@ function CodingTheory.weight_plot(S::AbstractStabilizerCode; alg::Symbol = :auto
4949
end
5050

5151
"""
52-
weight_plot_CSS_X(S::AbstractStabilizerCodeCSS; alg::Symbol = :auto)
52+
$TYPEDSIGNATURES
5353
5454
Return a bar graph of the weight distribution of the `X` stabilizers.
5555
@@ -73,7 +73,7 @@ function CodingTheory.weight_plot_CSS_X(S::AbstractStabilizerCodeCSS; alg::Symbo
7373
end
7474

7575
"""
76-
weight_plot_CSS_Z(S::AbstractStabilizerCodeCSS; alg::Symbol = :auto)
76+
$TYPEDSIGNATURES
7777
7878
Return a bar graph of the weight distribution of the `Z` stabilizers.
7979
@@ -97,7 +97,7 @@ function CodingTheory.weight_plot_CSS_Z(S::AbstractStabilizerCodeCSS; alg::Symbo
9797
end
9898

9999
"""
100-
weight_plot_CSS(S::AbstractStabilizerCodeCSS; alg::Symbol = :auto)
100+
$TYPEDSIGNATURES
101101
102102
Return bar graphs of the weight distribution of both the `X` and 'Z' stabilizers, separately.
103103

src/Quantum/misc_known_codes.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ function BravyiBaconShorCode(A::CTMatrixTypes)
181181
# but this is corrected here to match
182182
# X - consequetive column pairs
183183
X_gauges = zero_matrix(F, sum([col_wts[i] - 1 for i in 1:length(col_wts)]), n)
184+
typeof(X_gauges)
184185
curr_row = 1
185186
F_one = F(1)
186187
for c in 1:nc

0 commit comments

Comments
 (0)