Skip to content

Commit 7d7b89a

Browse files
committed
comment out warn macro as it appears in doctests
1 parent cda23af commit 7d7b89a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Quantum/product_codes.jl

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

388-
@warn "Commutativity of A and b required but not yet enforced."
388+
# @warn "Commutativity of A and b required but not yet enforced."
389389
S = base_ring(b)
390390
F = base_ring(S)
391391
# Int(order(F)) == 2 || throw(ArgumentError("The generalized hypergraph product is only defined over GF(2)."))
@@ -496,7 +496,7 @@ Return the pre-lifted matrices `H_X` and `H_Z` for the lifted quasi-cyclic lifte
496496
- Use `LiftedProductCode` to return a quantum code over the base ring directly.
497497
"""
498498
function lifted_product_matrices(A::MatElem{T}, B::MatElem{T}) where T <: ResElem
499-
@warn "Commutativity of A and b required but not yet enforced."
499+
# @warn "Commutativity of A and b required but not yet enforced."
500500
S = base_ring(A[1, 1])
501501
F = base_ring(S)
502502
Int(order(F)) == 2 || throw(ArgumentError("The quasi-cyclic lifted product is only defined over GF(2)."))
@@ -584,8 +584,6 @@ julia> A = matrix(R, 7, 7,
584584
julia> b = R(1 + x + x^6);
585585
586586
julia> code = LiftedProductCode(A, b);
587-
┌ Warning: Commutativity of A and b required but not yet enforced.
588-
└ @ CodingTheory ~/Desktop/ct/doctests/CodingTheory/src/Quantum/product_codes.jl:340
589587
590588
julia> length(code), dimension(code)
591589
(882, 24)
@@ -611,7 +609,7 @@ Return the pre-lifted stabilizer matrix for bias-tailored lifted product code of
611609
- Use `BiasTailoredLiftedProductCode` to return a quantum code over the base ring directly.
612610
"""
613611
function bias_tailored_lifted_product_matrices(A::MatElem{T}, B::MatElem{T}) where T <: ResElem
614-
@warn "Commutativity of A and b required but not yet enforced."
612+
# @warn "Commutativity of A and b required but not yet enforced."
615613
S = base_ring(A[1, 1])
616614
F = base_ring(S)
617615
Int(order(F)) == 2 || throw(ArgumentError("The quasi-cyclic lifted product is only defined over GF(2)."))
@@ -677,8 +675,6 @@ julia> A2 = matrix(R, 7, 7,
677675
0 , 0 , 0 , 0 , 1 , x^9 , x^36]);
678676
679677
julia> code = BiasTailoredLiftedProductCode(A1, A2);
680-
┌ Warning: Commutativity of A and b required but not yet enforced.
681-
└ @ CodingTheory ~/Desktop/ct/doctests/CodingTheory/src/Quantum/product_codes.jl:60
682678
683679
julia> length(code), dimension(code)
684680
(882, 24)

0 commit comments

Comments
 (0)