Weight Reduction

See the weight reduction tutorial for a more detailed explanation of this function.

CodingTheory.copyingFunction
copying(H_X::CTMatrixTypes, H_Z::CTMatrixTypes; method::Symbol = :Hastings, target_q_X::Int = 3)

Return the result of copying on H_X and H_Z using either the Hastings, reduced, or targeted methods.

source
copying(S::AbstractStabilizerCode, method::Symbol = :Hastings, target_q_X::Int = 3)

Return the result of copying on S using either the Hastings, reduced, or targeted methods.

source
CodingTheory.copying_as_coningFunction
copying_as_coning(H_X::CTMatrixTypes, H_Z::CTMatrixTypes; method::Symbol = :Hastings, target_q_X::Int = 3)

Return the result of copying on H_X and H_Z using either the Hastings, reduced, or targeted methods by using the mapping cone.

source
copying_as_coning(S::AbstractStabilizerCode, method::Symbol = :Hastings, target_q_X::Int = 3)

Return the result of copying on S using either the Hastings, reduced, or targeted methods by using the mapping cone.

source
CodingTheory.gaugingFunction
gauging(H_X::CTMatrixTypes, H_Z::CTMatrixTypes)

Return the result of gauging on H_X and H_Z.

source
gauging(S::AbstractStabilizerCode)

Return the result of gauging on S.

source
CodingTheory.gauging_as_coningFunction
gauging_as_coning(H_X::CTMatrixTypes, H_Z::CTMatrixTypes)

Return the result of gauging on H_X and H_Z by using the mapping cone.

source
gauging_as_coning(S::AbstractStabilizerCode)

Return the result of gauging on S by using the mapping cone.

source
CodingTheory.thickening_and_choose_heightsFunction
thickening_and_choose_heights(H_X::CTMatrixTypes, H_Z::CTMatrixTypes, l::Integer, heights::Vector{Int})

Return the result of thickening and choosing heights on H_X and H_Z.

source
thickening_and_choose_heights(S::AbstractStabilizerCode, l::Integer, heights::Vector{Int})

Return the result of thickening and choosing heights on S.

source
CodingTheory.coningFunction
coning(H_X::T, H_Z::T, row_indices::AbstractVector{Int}; rng::AbstractRNG = Random.seed!()) where T <: CTMatrixTypes

Return the result of coning on H_X and H_Z by reducing the Z stabilizers in row_indices. The optional argument rng can be used to make the output of this function reproducible.

source
coning(S::AbstractStabilizerCode, row_indices::AbstractVector{Int}; rng::AbstractRNG = Random.seed!()) where T <: CTMatrixTypes

Return the result of coning on S by reducing the Z stabilizers in row_indices. The optional argument rng can be used to make the output of this function reproducible.

source
CodingTheory.quantum_weight_reductionFunction
weight_reduction(S::AbstractStabilizerCode, copying_type::Symbol=:Hastings, copying_target::Int = 3, l1::Int, heights::Vector{Int}, l2::Int = 1, rng::AbstractRNG = Random.seed!())
quantum_weight_reduction(S::AbstractStabilizerCode, copying_type::Symbol=:Hastings, copying_target::Int = 3, l1::Int, heights::Vector{Int}, l2::Int = 1, rng::AbstractRNG = Random.seed!())

Return the weight-reduced CSS code of S.

source