Algorithm Search⌘K

Algorithmcore

Partial transmit sequence

Also called PTS.

Lowers the PAPR of OFDM by splitting the subcarriers into V subblocks, transforming each once, and searching phase factors for the subblocks. The best factors go to the receiver.

Time
O(V L N log(L N) + W^(V-1) V L N) worst
Space
O(V L N) extra
Where
L = the oversampling factor; N = the number of subcarriers; V = the number of subblocks; W = the number of allowed phase factors
Properties
deterministicdistortionlessnever worse than plain ofdmside information
Origin
Stefan H. Müller, Johannes B. Huber, 1997

Partial transmit sequences (PTS) lower the peak-to-average power ratio (PAPR) of an OFDM symbol without distorting it. The transmitter splits the NN subcarriers into VV disjoint subblocks, takes one inverse FFT of each subblock alone, and then searches for phase factors b1=1,b2,…,bVb_1 = 1, b_2, \ldots, b_V from a small set such as {±1,±j}\{\pm 1, \pm j\} so that the sum ∑vbvxv\sum_v b_v x_v has the lowest peak. Because the transform is linear, this sum is the OFDM symbol of the data with every subcarrier of subblock vv rotated by bvb_v, so each candidate costs additions only. The receiver gets the factors as side information and undoes them. Müller and Huber proposed it in 1997. It is a structured form of selected mapping: SLM needs one inverse FFT per candidate, while PTS needs VV inverse FFTs for WV−1W^{V-1} candidates, but its search grows exponentially in VV. The page uses the unitary DFT pair F[k,n]=e−j2πkn/N/NF[k, n] = e^{-j 2\pi k n / N}/\sqrt N, and jj is the imaginary unit.

In plain words

A tall peak in an OFDM signal happens when many tones line up at one instant. If you turn a whole group of tones by some angle, they line up at different instants, and the peak can disappear. PTS cuts the tones into a few groups and builds the signal of each group separately. Then it tries all the ways to turn each group by a quarter turn, a half turn or not at all. Adding the turned group signals is cheap, so many combinations can be tried. The sender keeps the combination with the lowest peak and tells the receiver which one it used. The receiver turns each group back. The data are not changed at all, but the number of combinations grows very fast with the number of groups.

The problem

The input is a block of NN data symbols X[0],…,X[N−1]X[0], \ldots, X[N-1] with E∣X[k]∣2=1E|X[k]|^2 = 1, a partition of the subcarriers into subblocks S1,…,SVS_1, \ldots, S_V, a set WW of allowed phase factors of magnitude 1, and an oversampling factor LL, usually 4. The output is a vector of factors b∈{1}×WV−1b \in \{1\} \times W^{V-1} and the oversampled OFDM symbol of the rotated data Xb[k]=bvX[k]X_b[k] = b_v X[k] for k∈Svk \in S_v, such that its PAPR is the smallest over all such vectors. The first factor is fixed to 1, because multiplying all factors by a common phase does not change the PAPR.

The algorithm

  1. PTS(X[0..N-1], S_1..S_V, W, L)
  2. 1for v ← 1 to V
  3. 2x_v ← √L · F_LNᴴ (X on S_v, 0 elsewhere, with (L-1)N zeros in the middle)
  4. 3best ← ∞
  5. 4for each (b_2, .., b_V) in W^(V-1), with b_1 = 1
  6. 5x ← Σ_v b_v · x_v ▷ the symbol of the rotated data, by linearity
  7. 6r ← max_m |x[m]|² / mean_m |x[m]|²
  8. 7if r < best then best ← r; b* ← b
  9. 8return b*, Σ_v b*_v · x_v ▷ send the symbol and the V - 1 factors

Lines L1 and L2 compute the VV partial transmit sequences, each with one inverse FFT of size LNLN. The zeros go in the middle of each spectrum, because the indices k≥N/2k \ge N/2 are the negative frequencies. Lines L4 to L7 search every combination of the free factors; line L5 forms the candidate with O(VLN)O(VLN) multiplications and additions, which are only sign changes and swaps for W={±1,±j}W = \{\pm 1, \pm j\}. Line L8 sends the best candidate. The side information is (V−1)log⁡2W(V - 1) \log_2 W bits. The receiver equalizes and computes X[k]=Y[k] bv∗‾X[k] = Y[k]\, \overline{b^\ast_v} for k∈Svk \in S_v.

Example

Take N=64N = 64 QPSK subcarriers, L=4L = 4, V=4V = 4 adjacent subblocks of 16 subcarriers and W={1,−1,j,−j}W = \{1, -1, j, -j\}, so 43=644^3 = 64 candidates and 6 bits of side information. For one block (Python random.Random(1)), plain OFDM has a PAPR of 6.94 dB. The search returns b∗=(1,−j,j,−j)b^\ast = (1, -j, j, -j) and a PAPR of 5.59 dB, 1.35 dB lower.

Over 300 random blocks (random.Random(2)):

setting candidates side bits mean PAPR 99 percent below Pr⁡(>7 dB)\Pr(> 7\ \mathrm{dB})
plain OFDM 1 0 7.36 dB 9.48 dB 0.613
V=2V = 2, W=4W = 4, adjacent 4 2 6.75 dB 8.20 dB 0.300
V=4V = 4, W=2W = 2, adjacent 8 3 6.32 dB 7.38 dB 0.083
V=4V = 4, W=4W = 4, adjacent 64 6 5.78 dB 6.81 dB none in 300
V=4V = 4, W=4W = 4, interleaved 64 6 6.13 dB 7.38 dB 0.030
V=8V = 8, W=2W = 2, adjacent 128 7 5.53 dB 6.22 dB none in 300

Adjacent subblocks do better than interleaved ones (subcarrier kk in subblock k mod Vk \bmod V) with the same number of candidates. The reason is that an interleaved subblock has a time signal that repeats VV times within the symbol, so the rotations cannot move a peak in one part of the symbol without moving its copies. More subblocks help more than more phase values: V=8V = 8 with 2 phases beats V=4V = 4 with 4 phases.

Correctness

The claim is that line L8 returns the factors that minimize the PAPR over all of {1}×WV−1\{1\} \times W^{V-1}, together with the exact OFDM symbol of the rotated data, and that the receiver recovers XX exactly. The key fact is linearity: the map from subcarrier values to the oversampled symbol is linear, and the subblocks are disjoint, so ∑vbvxv\sum_v b_v x_v is exactly the symbol of the rotated data. The loop invariant is that best\mathit{best} is the smallest PAPR among the vectors tried so far, and b∗b^\ast is the first vector that reaches it. Fixing b1=1b_1 = 1 loses nothing when WW is a group, since a common phase leaves the PAPR unchanged. The vector of all ones is in the search, so the result is never worse than plain OFDM. The full proof is in proofs/correctness.md.

Proof: The PTS search finds the best phase factors with one transform per subblock, and the receiver recovers the data exactlyfull

Let X∈CNX \in \mathbb{C}^N be the data and let the subcarriers be split into disjoint subblocks S1,…,SVS_1, \ldots, S_V that cover {0,…,N−1}\{0, \ldots, N-1\}. Let WW be a finite set of complex numbers of magnitude 1 (for example {1,−1,j,−j}\{1, -1, j, -j\}). For a vector b=(b1,…,bV)b = (b_1, \ldots, b_V), the rotated data are Xb[k]=bvX[k]X_b[k] = b_v X[k] for k∈Svk \in S_v. Write TT for the map of line L2 from NN subcarrier values to the oversampled symbol, T(Y)=LFLNHZ(Y)T(Y) = \sqrt L F_{LN}^H Z(Y), where Z(Y)Z(Y) puts (L−1)N(L - 1)N zeros in the middle of YY. We work in exact arithmetic.

Lemma 1 (linearity). TT is linear, so with xv=T(X⋅1Sv)x_v = T(X \cdot 1_{S_v}), the symbol of the subblock vv alone,

T(Xb)=∑v=1Vbv xvfor every b.T(X_b) = \sum_{v=1}^V b_v\, x_v \quad \text{for every } b.

Proof. ZZ is a linear map, since it only places values and zeros, and FLNHF_{LN}^H is linear. The rotated data are Xb=∑vbv (X⋅1Sv)X_b = \sum_v b_v\, (X \cdot 1_{S_v}), because the subblocks are disjoint and cover all subcarriers. Apply TT to both sides. □\square

So line L5 computes the exact oversampled symbol of XbX_b, the one a direct inverse FFT of XbX_b would give.

Lemma 2 (loop invariant). After the iterations of line L4 over a prefix of WV−1W^{V-1} in its fixed order, the stored value best\mathit{best} is the minimum of PAPR(T(Xb))\mathrm{PAPR}(T(X_b)) over the vectors b=(1,b2,…,bV)b = (1, b_2, \ldots, b_V) seen so far, and b∗b^\ast is the first vector that reaches it.

Proof. By induction on the number of iterations. Before the loop best=∞\mathit{best} = \infty (line L3). Line L7 replaces the stored pair exactly when the new PAPR is strictly smaller than the stored minimum, so the minimum is kept, and on a tie the earlier vector stays. □\square

Theorem 1 (the search is exact). Line L8 returns a vector b∗b^\ast with b1∗=1b^\ast_1 = 1 that minimizes PAPR(T(Xb))\mathrm{PAPR}(T(X_b)) over all b∈{1}×WV−1b \in \{1\} \times W^{V-1}, and the symbol T(Xb∗)T(X_{b^\ast}).

Proof. Lemma 2 at the end of the loop, which visits every element of WV−1W^{V-1} once, and Lemma 1 for the symbol. □\square

Lemma 3 (fixing b1b_1 loses nothing). For any cc with ∣c∣=1|c| = 1, PAPR(T(Xcb))=PAPR(T(Xb))\mathrm{PAPR}(T(X_{cb})) = \mathrm{PAPR}(T(X_b)). So if WW is closed under division (a group, such as {±1}\{\pm 1\} or {±1,±j}\{\pm 1, \pm j\}), the minimum over {1}×WV−1\{1\} \times W^{V-1} equals the minimum over all of WVW^V.

Proof. T(Xcb)=c T(Xb)T(X_{cb}) = c\, T(X_b) by linearity, and multiplying every sample by cc with ∣c∣=1|c| = 1 changes neither ∣x[m]∣2|x[m]|^2 nor the mean power. For b∈WVb \in W^V take c=1/b1=b1‾c = 1/b_1 = \overline{b_1}; then cbcb has first entry 1 and, since WW is a group, all its entries in WW. □\square

Theorem 2 (never worse than OFDM, and exact recovery). The returned PAPR is at most the PAPR of plain OFDM of XX. If the receiver gets Y[k]=Xb∗[k]Y[k] = X_{b^\ast}[k] and knows b∗b^\ast and the partition, then Y[k] bv∗‾=X[k]Y[k]\, \overline{b^\ast_v} = X[k] for k∈Svk \in S_v.

Proof. The vector b=(1,…,1)b = (1, \ldots, 1) is in the search space and gives Xb=XX_b = X, so Theorem 1 gives the first claim. For the second, Y[k] bv∗‾=X[k] ∣bv∗∣2=X[k]Y[k]\, \overline{b^\ast_v} = X[k]\, |b^\ast_v|^2 = X[k]. □\square

Complexity

The VV inverse FFTs cost O(VLNlog⁡(LN))O(V L N \log(LN)). The search tries WV−1W^{V-1} vectors, each at O(VLN)O(VLN) for the sum and the PAPR, so one block costs O(VLNlog⁡(LN)+WV−1VLN)O(V L N \log(LN) + W^{V-1} V L N) operations in the real-RAM model, and the memory is O(VLN)O(VLN) for the partial sequences. The search term dominates quickly: for N=64N = 64, L=4L = 4, V=8V = 8 and W=4W = 4 it is 47=163844^7 = 16384 candidates per symbol. The exhaustive search is what makes the result optimal; the practical versions below search only part of the space and give up that guarantee.

Properties

  • Distortionless. The data reach the receiver unchanged.
  • Never worse than OFDM. The vector of all ones is one of the candidates.
  • Cheaper transforms than SLM. VV inverse FFTs give WV−1W^{V-1} candidates. Selected mapping needs one inverse FFT for each candidate.
  • Exponential search. The number of candidates grows as WV−1W^{V-1}, and the search, not the transforms, sets the cost for VV above about 4.
  • Side information. (V−1)log⁡2W(V - 1) \log_2 W bits per symbol, which must reach the receiver without error.
  • Partition matters. In the example, adjacent subblocks give a lower PAPR than interleaved ones for the same VV and WW.

Variants and improvements

  • Sub-optimal search. An iterative search flips one factor at a time and keeps the change if the PAPR falls, with O(VW)O(V W) candidates instead of WV−1W^{V-1}. Other versions use a threshold: stop as soon as a candidate has a PAPR below a target.
  • Pseudo-random partition. Each subcarrier goes to a random subblock, known to both ends. This avoids the periodic time signals of the interleaved partition.
  • Blind PTS. The receiver finds the factors without side information, using the structure of the constellation, at the cost of a search at the receiver.
  • Continuous phases. Factors from a continuous set, chosen by an optimization, reach a lower PAPR but need more side information or a blind receiver.
  • Combined methods. PTS can be followed by clipping and filtering to remove the remaining rare peaks.

When to use it

Use PTS when the data must reach the receiver without distortion, a few bits of protected side information per symbol are acceptable, and the transmitter cannot afford one inverse FFT per candidate as in SLM. Keep VV small, 4 to 8, or use a sub-optimal search. If the receiver cannot be changed, use clipping and filtering or tone reservation instead.

Pitfalls

  • Searching on Nyquist-rate samples. Line L2 with L=1L = 1 ranks the candidates by their samples only, and the selected symbol can still have a peak between samples. Use L≥4L \ge 4 in line L2.
  • Overlapping subblocks. If a subcarrier belongs to two subblocks, line L5 adds it twice and the symbol is no longer that of rotated data. Line L2 must use a partition: every subcarrier in exactly one subblock.
  • Searching b1b_1 too. Letting line L4 range over all of WVW^V multiplies the work by WW and finds nothing better, because a common phase does not change the PAPR. Fix b1=1b_1 = 1.
  • Interleaved partition by default. Choosing Sv={k:k mod V=v−1}S_v = \{k : k \bmod V = v - 1\} in line L2 is easy to code but gives a weaker result. Use adjacent or pseudo-random subblocks.
  • Unprotected factors. One wrong factor at the receiver rotates a whole subblock and destroys its data. Code the side information strongly.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

partial_transmit_sequence.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/partial-transmit-sequence/. The authors are listed in prov/JND5P6.jsonl.

"""Partial transmit sequences (PTS) for the PAPR of OFDM (Muller and Huber 1997).

The N subcarriers are split into V disjoint subblocks. Each subblock is
transformed on its own, giving V partial sequences x_v of the symbol
oversampled by L. By linearity, rotating every subcarrier of subblock v by the
same factor b_v gives the time signal sum_v b_v x_v, so each candidate costs
O(V L N) and no new FFT. The search tries every vector b in W^(V-1) with
b_1 = 1 and keeps the one with the lowest PAPR. The FFT is a radix-2 FFT, so
N and L must be powers of two.
"""

import cmath
import itertools
import math
from typing import Sequence


def fft(a: Sequence[complex], inverse: bool = False) -> list[complex]:
    """Radix-2 FFT with no scale factor: sum_n a[n] e^(-+ j 2 pi k n / n_len)."""
    n = len(a)
    if n == 0 or n & (n - 1):
        raise ValueError("the length must be a power of two")
    out = [complex(v) for v in a]
    j = 0
    for i in range(1, n):
        bit = n >> 1
        while j & bit:
            j ^= bit
            bit >>= 1
        j |= bit
        if i < j:
            out[i], out[j] = out[j], out[i]
    sign = 1 if inverse else -1
    size = 2
    while size <= n:
        half = size // 2
        tw = [cmath.exp(sign * 2j * math.pi * k / size) for k in range(half)]
        for s in range(0, n, size):
            for k in range(half):
                u = out[s + k]
                v = out[s + k + half] * tw[k]
                out[s + k] = u + v
                out[s + k + half] = u - v
        size *= 2
    return out


def to_time(X: Sequence[complex], L: int) -> list[complex]:
    """sqrt(L) F^H Z: the OFDM symbol of X oversampled by L, zeros in the middle of the spectrum."""
    n = len(X)
    z = [0j] * (L * n)
    z[: n // 2] = [complex(v) for v in X[: n // 2]]
    z[L * n - n + n // 2:] = [complex(v) for v in X[n // 2:]]
    s = 1.0 / math.sqrt(n)
    return [v * s for v in fft(z, inverse=True)]


def to_bins(x: Sequence[complex], L: int) -> list[complex]:
    """The N in-band subcarrier values of an oversampled symbol: the inverse of to_time."""
    n = len(x) // L
    c = fft(x)
    s = 1.0 / (L * math.sqrt(n))
    return [v * s for v in c[: n // 2] + c[L * n - n // 2:]]


def papr(x: Sequence[complex]) -> float:
    """max |x[m]|^2 over the time average of |x[m]|^2."""
    p = [abs(v) ** 2 for v in x]
    return max(p) / (sum(p) / len(p))


def adjacent_partition(n: int, v: int) -> list[int]:
    """Subblock label of each subcarrier: V runs of N / V adjacent subcarriers."""
    return [k * v // n for k in range(n)]


def interleaved_partition(n: int, v: int) -> list[int]:
    """Subblock label of each subcarrier: subcarrier k goes to subblock k mod V."""
    return [k % v for k in range(n)]


def partial_transmit_sequence(X: Sequence[complex], labels: Sequence[int], phases: Sequence[complex], L: int = 4) -> tuple[list[complex], list[complex], float]:
    """Exhaustive PTS search. Returns the factors b (b[0] = 1), the oversampled symbol and its PAPR."""
    nv = max(labels) + 1
    parts = []
    for v in range(nv):  # @line L1
        parts.append(to_time([x if lab == v else 0j for x, lab in zip(X, labels)], L))  # @line L2
    best, best_b, best_x = math.inf, None, None  # @line L3
    for tail in itertools.product(phases, repeat=nv - 1):  # @line L4
        b = (1 + 0j,) + tail
        x = [sum(bv * p[m] for bv, p in zip(b, parts)) for m in range(len(parts[0]))]  # @line L5
        r = papr(x)  # @line L6
        if r < best:  # @line L7
            best, best_b, best_x = r, list(b), x
    return best_b, best_x, best  # @line L8


def pts_receive(Y: Sequence[complex], labels: Sequence[int], b: Sequence[complex]) -> list[complex]:
    """Undo the factor of each subblock on the equalized subcarrier values Y (|b_v| = 1)."""
    return [y * b[lab].conjugate() for y, lab in zip(Y, labels)]
test_partial_transmit_sequence.py 88 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/partial-transmit-sequence/. The authors are listed in prov/JND5P6.jsonl.

import cmath
import itertools
import math
import random

from partial_transmit_sequence import (
    adjacent_partition,
    fft,
    interleaved_partition,
    papr,
    partial_transmit_sequence,
    pts_receive,
    to_bins,
    to_time,
)

QPSK = [complex(a, b) / math.sqrt(2) for a in (1, -1) for b in (1, -1)]
W4 = (1, -1, 1j, -1j)


def block(rng, n):
    return [rng.choice(QPSK) for _ in range(n)]


def direct_time(X, L):
    """The oversampled OFDM symbol from its definition."""
    n = len(X)
    freqs = list(range(n // 2)) + list(range(-(n // 2), 0))
    return [sum(X[i] * cmath.exp(2j * math.pi * f * m / (L * n)) for i, f in enumerate(freqs)) / math.sqrt(n) for m in range(L * n)]


def test_fft_and_oversampled_symbol():
    rng = random.Random(1)
    X = block(rng, 16)
    assert max(abs(a - b) for a, b in zip(to_time(X, 4), direct_time(X, 4))) < 1e-9
    assert max(abs(a - 16 * b) for a, b in zip(fft(fft(X), inverse=True), X)) < 1e-9


def test_partitions():
    assert adjacent_partition(8, 4) == [0, 0, 1, 1, 2, 2, 3, 3]
    assert interleaved_partition(8, 4) == [0, 1, 2, 3, 0, 1, 2, 3]


def test_search_matches_brute_force_with_one_transform_per_candidate():
    rng = random.Random(2)
    for labels in (adjacent_partition(16, 4), interleaved_partition(16, 4)):
        for _ in range(4):
            X = block(rng, 16)
            b, x, r = partial_transmit_sequence(X, labels, W4, 4)
            brute = math.inf
            for tail in itertools.product(W4, repeat=3):
                bb = (1,) + tail
                brute = min(brute, papr(direct_time([xk * bb[lab] for xk, lab in zip(X, labels)], 4)))
            assert abs(r - brute) < 1e-9
            assert b[0] == 1
            rotated = [xk * b[lab] for xk, lab in zip(X, labels)]
            assert max(abs(p - q) for p, q in zip(x, direct_time(rotated, 4))) < 1e-9


def test_never_worse_than_plain_ofdm_and_round_trip():
    rng = random.Random(3)
    labels = adjacent_partition(64, 4)
    for _ in range(10):
        X = block(rng, 64)
        b, x, r = partial_transmit_sequence(X, labels, W4, 4)
        assert r <= papr(to_time(X, 4)) + 1e-12
        assert max(abs(p - q) for p, q in zip(pts_receive(to_bins(x, 4), labels, b), X)) < 1e-9


def test_one_subblock_is_plain_ofdm():
    rng = random.Random(4)
    X = block(rng, 32)
    b, x, r = partial_transmit_sequence(X, [0] * 32, W4, 4)
    assert b == [1]
    assert abs(r - papr(to_time(X, 4))) < 1e-12


def test_average_gain():
    rng = random.Random(5)
    labels = adjacent_partition(64, 4)
    gains = []
    for _ in range(15):
        X = block(rng, 64)
        gains.append(10 * math.log10(papr(to_time(X, 4)) / partial_transmit_sequence(X, labels, W4, 4)[2]))
    assert sum(gains) / len(gains) > 1.5

History

Müller and Huber published PTS in 1997 as an optimum combination of partial transmit sequences, one year after Bäuml, Fischer and Huber published selected mapping. Later work focused on reducing the search, with iterative and threshold searches, and on removing the side information. The overview of Han and Lee (2005) compares PTS with SLM and the other PAPR methods.

References

  1. S. H. Müller and J. B. Huber, OFDM with reduced peak-to-average power ratio by optimum combination of partial transmit sequences, Electronics Letters 33(5), 1997, pages 368 to 369, the partition into subblocks, the separate transforms, the rotation factors and the search for their best combination
  2. Seung Hee Han and Jae Hong Lee, An overview of peak-to-average power ratio reduction techniques for multicarrier transmission, IEEE Wireless Communications 12(2), 2005, pages 56 to 65, the section on partial transmit sequences, with the partitions and the cost of the search

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • at least three sources
  • a scene preset for the example