Skip to content

Commit f786b0d

Browse files
committed
uncomment warn macro
1 parent f8f940c commit f786b0d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/src/Tutorials/Weight Reduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ julia> b = R(1 + x + x^6);
697697
698698
julia> code = LiftedProductCode(A, b);
699699
┌ Warning: Commutativity of A and b required but not yet enforced.
700-
└ @ CodingTheory ~/Documents/GitHub/CodingTheory/src/Quantum/product_codes.jl:354
700+
└ @ CodingTheory ~/Documents/GitHub/CodingTheory/src/Quantum/product_codes.jl:340
701701
702702
julia> length(code), dimension(code)
703703
(882, 48)

src/Quantum/product_codes.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ Return the pre-lifted matrices `H_X` and `H_Z` of the generalized hypergraph pro
433433
"""
434434
function generalized_hypergraph_product_matrices(A::MatElem{T}, b::T) where T <: ResElem
435435

436-
# @warn "Commutativity of A and b required but not yet enforced."
436+
@warn "Commutativity of A and b required but not yet enforced."
437437
S = base_ring(b)
438438
F = base_ring(S)
439439
# Int(order(F)) == 2 || throw(ArgumentError("The generalized hypergraph product is only defined over GF(2)."))
@@ -544,7 +544,7 @@ Return the pre-lifted matrices `H_X` and `H_Z` for the lifted quasi-cyclic lifte
544544
- Use `LiftedProductCode` to return a quantum code over the base ring directly.
545545
"""
546546
function lifted_product_matrices(A::MatElem{T}, B::MatElem{T}) where T <: ResElem
547-
# @warn "Commutativity of A and b required but not yet enforced."
547+
@warn "Commutativity of A and b required but not yet enforced."
548548
S = base_ring(A[1, 1])
549549
F = base_ring(S)
550550
Int(order(F)) == 2 || throw(ArgumentError("The quasi-cyclic lifted product is only defined over GF(2)."))
@@ -632,6 +632,8 @@ julia> A = matrix(R, 7, 7,
632632
julia> b = R(1 + x + x^6);
633633
634634
julia> code = LiftedProductCode(A, b);
635+
┌ Warning: Commutativity of A and b required but not yet enforced.
636+
└ @ CodingTheory ~/Documents/GitHub/CodingTheory/src/Quantum/product_codes.jl:340
635637
636638
julia> length(code), dimension(code)
637639
(882, 24)
@@ -657,7 +659,7 @@ Return the pre-lifted stabilizer matrix for bias-tailored lifted product code of
657659
- Use `BiasTailoredLiftedProductCode` to return a quantum code over the base ring directly.
658660
"""
659661
function bias_tailored_lifted_product_matrices(A::MatElem{T}, B::MatElem{T}) where T <: ResElem
660-
# @warn "Commutativity of A and b required but not yet enforced."
662+
@warn "Commutativity of A and b required but not yet enforced."
661663
S = base_ring(A[1, 1])
662664
F = base_ring(S)
663665
Int(order(F)) == 2 || throw(ArgumentError("The quasi-cyclic lifted product is only defined over GF(2)."))
@@ -723,6 +725,8 @@ julia> A2 = matrix(R, 7, 7,
723725
0 , 0 , 0 , 0 , 1 , x^9 , x^36]);
724726
725727
julia> code = BiasTailoredLiftedProductCode(A1, A2);
728+
┌ Warning: Commutativity of A and b required but not yet enforced.
729+
└ @ CodingTheory ~/Documents/GitHub/CodingTheory/src/Quantum/product_codes.jl:60
726730
727731
julia> length(code), dimension(code)
728732
(882, 24)

0 commit comments

Comments
 (0)