---
title: "Additive Codes"
canonical: "https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/index-additive-codes.html"
source: "https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/index-additive-codes.md"
part: "Coding Theory"
chapter: "Additive Codes"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Coding Theory", "source": "https://docs.magma-maths.org/v2.30-1/CodingTheory/index-coding-theory.md"}
prev: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/CodingTheory/LinearCodesOverZ4/bibliography.md"}
next: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/introduction.md"}
---

<a id="error-correcting-additive-code"></a>
<a id="chap-codeadd"></a>
# Additive Codes

- [Introduction](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/introduction.md)
- [Construction of Additive Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md)
  - [Construction of General Additive Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#construction-of-general-additive-codes)
    - [`AdditiveCode<F, K, n | L>: FldFin, RngIntElt, List → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#constructor-constructor-additivecode-fldfin-rngintelt-list-code)
    - [`AdditiveCode(G): ModMatRngElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-additivecode-modmatrngelt)
    - [`AdditiveCode(K, G): FldFin, ModMatRngElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-additivecode-fldfin-modmatrngelt)
    - [Example: Linear and Additive Codes Compared](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#example-ex-f9cba7)
    - [Example: Additive Code from a Matrix](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#example-ex-9d93b8)
    - [`AdditiveCode(K, C): FldFin, Code → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-additivecode-fldfin-code)
    - [Example: Additive Code from a Linear Code](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#example-ex-8b74a8)
    - [Example: Viewing an Additive Code over a Subfield](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#example-ex-770cac)
  - [Some Trivial Additive Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#some-trivial-additive-codes)
    - [`AdditiveZeroCode(F, K, n): FldFin, FldFin, RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-additivezerocode-fldfin-fldfin-rngintelt)
    - [`AdditiveRepetitionCode(F, K, n): FldFin, FldFin, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-additiverepetitioncode-fldfin-fldfin-rngintelt)
    - [`AdditiveZeroSumCode(F, K, n): FldFin, FldFin, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-additivezerosumcode-fldfin-fldfin-rngintelt)
    - [`AdditiveUniverseCode(F, K, n): FldFin, FldFin, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-additiveuniversecode-fldfin-fldfin-rngintelt)
    - [`RandomAdditiveCode(F, K, n, k): FldFin, FldFin, RngIntElt, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#function-randomadditivecode-fldfin-fldfin-rngintelt-rngintelt)
    - [Example: Chain of Trivial Additive Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/creation.md#example-ex-24f23c)
- [Invariants of an Additive Code](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md)
  - [The Ambient Space and Alphabet](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#the-ambient-space-and-alphabet)
    - [`Alphabet(C): Code → Rng`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-alphabet-code)
    - [`Field(C): Code → Rng`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-field-code)
    - [`CoefficientField(C): Code → Rng`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-coefficientfield-code)
    - [`AmbientSpace(C): Code → ModTupRng`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-ambientspace-code)
    - [`Generic(C): Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-generic-code)
    - [Example: Alphabet and Coefficient Field](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#example-ex-b0a75c)
  - [Basic Numerical Invariants](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#basic-numerical-invariants)
    - [`Length(C): Code → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-length-code)
    - [`Dimension(C): Code → FldRatElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-dimension-code)
    - [`NumberOfGenerators(C): Code → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-numberofgenerators-code)
    - [`Ngens(C): Code → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-ngens-code)
    - [`# C: Code → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#operation-operation-code-rngintelt)
    - [`InformationRate(C): Code → FldPrElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-informationrate-code)
  - [The Code Space](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#the-code-space)
    - [`GeneratorMatrix(C): Code → ModMatFldElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-generatormatrix-code)
    - [`BasisMatrix(C): Code → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-basismatrix-code)
    - [`Basis(C): Code → [ ModTupRngElt ]`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-basis-code)
    - [`Generators(C): Code → { ModTupFldElt }`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-generators-code)
    - [`C . i: Code, RngIntElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#operation-operation-code-rngintelt-modtupfldelt)
  - [The Dual Space](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#the-dual-space)
    - [`Dual(C): CodeAdd → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-dual-codeadd)
    - [`ParityCheckMatrix(C): Code → ModMatFldElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/access.md#function-paritycheckmatrix-code)
- [Operations on Codewords](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md)
  - [Construction of a Codeword](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#construction-of-a-codeword)
    - [`C ! [a₁, ..., aₙ]: Code, [ RngElt ] → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-code-rngelt)
    - [`elt< C | a₁, ..., aₙ>: Code, List → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#constructor-constructor-elt-code-list-modtuprngelt)
    - [`C ! u: Code, ModTupRngElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-code-modtuprngelt)
    - [`C ! 0: Code, RngIntElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-code-rngintelt)
    - [`Random(C): Code → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-random-code)
  - [Arithmetic Operations on Codewords](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#arithmetic-operations-on-codewords)
    - [`u + v: ModTupRngElt, ModTupRngElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-plus-modtuprngelt-modtuprngelt)
    - [`- u: ModTupRngElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-operation-modtuprngelt-modtuprngelt)
    - [`u - v: ModTupRngElt, ModTupRngElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-minus-modtuprngelt-modtuprngelt)
    - [`a * u: RngElt, ModTupRngElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-times-rngelt-modtuprngelt)
    - [`Normalize(u): ModTupRngElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-normalize-modtuprngelt)
  - [Distance and Weight](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#distance-and-weight)
    - [`Distance(u, v): ModTupRngElt, ModTupRngElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-distance-modtuprngelt-modtuprngelt)
    - [`Weight(u): ModTupRngElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-weight-modtuprngelt)
  - [Vector Space and Related Operations](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#vector-space-and-related-operations)
    - [`(u, v): ModTupRngElt, ModTupRngElt → RngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#literal-literal-u-v-modtuprngelt-modtuprngelt-rngelt)
    - [`InnerProduct(u, v): ModTupRngElt, ModTupRngElt → RngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-innerproduct-modtuprngelt-modtuprngelt)
    - [`TraceInnerProduct(K, u, v): FldFin, ModTupFldElt, ModTupFldElt → FldFinElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-traceinnerproduct-fldfin-modtupfldelt-modtupfldelt)
    - [`Support(w): ModTupRngElt → { RngIntElt }`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-support-modtuprngelt)
    - [`Coordinates(C, u): Code, ModTupRngElt → [ RngFinElt ]`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-coordinates-code-modtuprngelt)
    - [`Parent(w): ModTupRngElt → ModTupRng`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-parent-modtuprngelt)
    - [`Rotate(u, k): ModTupRngElt, RngIntElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-rotate-modtuprngelt-rngintelt)
    - [`Rotate(~u, k): ModTupRngElt, RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#procedure-rotate-modtuprngelt-rngintelt-ref)
    - [`Trace(u, S): ModTupFldElt, FldFin → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-trace-modtupfldelt-fldfin)
    - [`Trace(u): ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-trace-modtupfldelt)
  - [Predicates for Codewords](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#predicates-for-codewords)
    - [`u eq v: ModTupRngElt, ModTupRngElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-eq-modtuprngelt-modtuprngelt)
    - [`u ne v: ModTupRngElt, ModTupRngElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#operation-op-ne-modtuprngelt-modtuprngelt)
    - [`IsZero(u): ModTupRngElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#function-iszero-modtuprngelt)
  - [Accessing Components of a Codeword](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#accessing-components-of-a-codeword)
    - [`u[i]: ModTupRngElt, RngIntElt → RngElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#literal-literal-u-i-modtuprngelt-rngintelt-rngelt)
    - [`u[i] := x;`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/element.md#literal-literal-u-i-x)
- [Subcodes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md)
  - [The Subcode Constructor](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#the-subcode-constructor)
    - [`sub<C | L>: CodeAdd, List → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#constructor-constructor-sub-codeadd-list-codeadd)
    - [`Subcode(C, k): CodeAdd, RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#function-subcode-codeadd-rngintelt)
    - [`Subcode(C, S): CodeAdd, { RngIntElt } → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#function-subcode-codeadd-rngintelt-2)
    - [`SubcodeBetweenCode(C1, C2, k): CodeAdd, CodeAdd, RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#function-subcodebetweencode-codeadd-codeadd-rngintelt)
    - [`SubcodeWordsOfWeight(C, w): CodeAdd, RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#function-subcodewordsofweight-codeadd-rngintelt)
    - [`SubcodeWordsOfWeight(C, S): CodeAdd, { RngIntElt } → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#function-subcodewordsofweight-codeadd-rngintelt-2)
    - [Example: Subcode between Two Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#example-ex-18722c)
  - [Sum, Intersection, and Dual](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#sum-intersection-and-dual)
    - [`C + D: CodeAdd, CodeAdd → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-op-plus-codeadd-codeadd)
    - [`C meet D: Code, Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-op-meet-code-code)
    - [`Dual(C): Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#function-dual-code)
  - [Membership and Equality](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#membership-and-equality)
    - [`u in C: ModTupRngElt, CodeAdd → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-op-in-modtuprngelt-codeadd)
    - [`u notin C: ModTupRngElt, CodeAdd → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-op-notin-modtuprngelt-codeadd)
    - [`C subset D: Code, Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-op-subset-code-code)
    - [`C notsubset D: Code, Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-operation-notsubset-code-code-boolelt)
    - [`C eq D: Code, Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-op-eq-code-code)
    - [`C ne D: Code, Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/subcode.md#operation-op-ne-code-code)
- [Properties of Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/Boolean.md)
  - [`IsSelfDual(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/Boolean.md#function-isselfdual-code)
  - [`IsSelfOrthogonal(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/Boolean.md#function-isselforthogonal-code)
  - [`IsPerfect(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/Boolean.md#function-isperfect-code)
  - [`IsProjective(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/Boolean.md#function-isprojective-code)
  - [`IsAdditiveProjective(C): CodeAdd → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/Boolean.md#function-isadditiveprojective-codeadd)
- [The Weight Distribution](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md)
  - [The Minimum Weight](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#the-minimum-weight)
    - [`MinimumWeight(C: parameters): CodeAdd → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-minimumweight-codeadd)
    - [`MinimumDistance(C: parameters): CodeAdd → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-minimumdistance-codeadd)
    - [Example: Minimum Weight of an Additive Code](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#example-ex-1dafbe)
  - [The Weight Distribution](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#id1)
    - [`WeightDistribution(C): CodeAdd → [ <RngIntElt, RngIntElt> ]`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-weightdistribution-codeadd)
    - [`DualWeightDistribution(C): CodeAdd → [ <RngIntElt, RngIntElt> ]`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-dualweightdistribution-codeadd)
  - [The Weight Enumerator](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#the-weight-enumerator)
    - [`WeightEnumerator(C): CodeAdd → RngMPolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-weightenumerator-codeadd)
    - [`CompleteWeightEnumerator(C): CodeAdd → RngMPolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-completeweightenumerator-codeadd)
    - [`CompleteWeightEnumerator(C, u): Code, ModTupFldElt → RngMPolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-completeweightenumerator-code-modtupfldelt)
  - [The MacWilliams Transform](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#the-macwilliams-transform)
    - [`MacWilliamsTransform(n, k, q, W): RngIntElt, RngIntElt, RngIntElt, [ <RngIntElt, RngIntElt> ] → [ <RngIntElt, RngIntElt> ]`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-macwilliamstransform-rngintelt-rngintelt-rngintelt-rngintelt-rngintelt)
  - [Words](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#words)
    - [`Words(C, w: parameters): Code, RngIntElt → { ModTupFldElt }`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-words-code-rngintelt)
    - [`NumberOfWords(C, w): Code, RngIntElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-numberofwords-code-rngintelt)
    - [`WordsOfBoundedWeight(C, l, u: parameters): Code, RngIntElt, RngIntElt → { ModTupFldElt }`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/structural.md#function-wordsofboundedweight-code-rngintelt-rngintelt)
- [Families of Linear Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md)
  - [Cyclic Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#cyclic-codes)
    - [`AdditiveCyclicCode(v): ModTupFldElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-modtupfldelt)
    - [`AdditiveCyclicCode(K, v): FldFin, ModTupFldElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-fldfin-modtupfldelt)
    - [`AdditiveCyclicCode(Q): [ModTupFldElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-modtupfldelt-2)
    - [`AdditiveCyclicCode(K, Q): FldFin, [ModTupFldElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-fldfin-modtupfldelt-2)
    - [`AdditiveCyclicCode(n, f): RngIntElt, RngUPolElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-rngintelt-rngupolelt)
    - [`AdditiveCyclicCode(K, n, f): FldFin, RngIntElt, RngUPolElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-fldfin-rngintelt-rngupolelt)
    - [`AdditiveCyclicCode(n, Q): RngIntElt, [RngUPolElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-rngintelt-rngupolelt-2)
    - [`AdditiveCyclicCode(K, n, Q): FldFin, RngIntElt, [RngUPolElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-fldfin-rngintelt-rngupolelt-2)
    - [`AdditiveCyclicCode(v4, v2): ModTupFldElt, ModTupFldElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-modtupfldelt-modtupfldelt)
    - [`AdditiveCyclicCode(n, f4, f2): RngIntElt, RngUPolElt, RngUPolElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivecycliccode-rngintelt-rngupolelt-rngupolelt)
  - [Quasicyclic Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#quasicyclic-codes)
    - [`AdditiveQuasiCyclicCode(n, Q): RngIntElt, SeqEnum[RngUPolElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-rngintelt-seqenum-rngupolelt)
    - [`AdditiveQuasiCyclicCode(K, n, Q): FldFin, RngIntElt, SeqEnum[RngUPolElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-fldfin-rngintelt-seqenum-rngupolelt)
    - [`AdditiveQuasiCyclicCode(n, Q, h): RngIntElt, SeqEnum[RngUPolElt], RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-rngintelt-seqenum-rngupolelt-rngintelt)
    - [`AdditiveQuasiCyclicCode(K, n, Q, h): FldFin, RngIntElt, SeqEnum[RngUPolElt], RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-fldfin-rngintelt-seqenum-rngupolelt-rngintelt)
    - [`AdditiveQuasiCyclicCode(Q): SeqEnum[ModTupFldElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-seqenum-modtupfldelt)
    - [`AdditiveQuasiCyclicCode(K, Q): FldFin, SeqEnum[ModTupFldElt] → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-fldfin-seqenum-modtupfldelt)
    - [`AdditiveQuasiCyclicCode(Q, h): SeqEnum[ModTupFldElt], RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-seqenum-modtupfldelt-rngintelt)
    - [`AdditiveQuasiCyclicCode(K, Q, h): FldFin, SeqEnum[ModTupFldElt], RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/families.md#function-additivequasicycliccode-fldfin-seqenum-modtupfldelt-rngintelt)
- [New Codes from Old](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md)
  - [Standard Constructions](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#standard-constructions)
    - [`AugmentCode(C): CodeAdd → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-augmentcode-codeadd)
    - [`CodeComplement(C, S): Code, Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-codecomplement-code-code)
    - [`DirectSum(C, D): Code, Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-directsum-code-code)
    - [`DirectSum(Q): [Code] → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-directsum-code)
    - [`DirectProduct(C, D): Code, Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-directproduct-code-code)
    - [`ExtendCode(C): CodeAdd → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-extendcode-codeadd)
    - [`ExtendCode(C, n): Code, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-extendcode-code-rngintelt)
    - [`PadCode(C, n): CodeAdd, RngIntElt → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-padcode-codeadd-rngintelt)
    - [`PlotkinSum(C1, C2): Code, Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-plotkinsum-code-code)
    - [`PlotkinSum(C1, C2, C3: parameters): Code, Code, Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-plotkinsum-code-code-code)
    - [`PunctureCode(C, i): CodeAdd, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-puncturecode-codeadd-rngintelt)
    - [`PunctureCode(C, S): CodeAdd, { RngIntElt } → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-puncturecode-codeadd-rngintelt-2)
    - [`ShortenCode(C, i): Code, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-shortencode-code-rngintelt)
    - [`ShortenCode(C, S): Code, { RngIntElt } → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-shortencode-code-rngintelt-2)
  - [Combining Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#combining-codes)
    - [`C1 cat C2: CodeAdd, CodeAdd → CodeAdd`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#operation-operation-cat-codeadd-codeadd-codeadd)
    - [`Juxtaposition(C1, C2): Code, Code → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/operation.md#function-juxtaposition-code-code)
- [Automorphism Group](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/additive-automorphisms.md)
  - [`AutomorphismGroup(C): CodeAdd → GrpPerm`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/additive-automorphisms.md#function-automorphismgroup-codeadd)
  - [`PermutationGroup(C): CodeAdd → GrpPerm`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AdditiveCodes/additive-automorphisms.md#function-permutationgroup-codeadd)
