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
- Model
- Real RAM
- Properties
- deterministicdistortionlessnever worse than plain ofdmside information
- Evidence
- Proof sketchCode in 1 languages
- 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 subcarriers into disjoint subblocks, takes one inverse FFT of each subblock alone, and then searches for phase factors from a small set such as so that the sum has the lowest peak. Because the transform is linear, this sum is the OFDM symbol of the data with every subcarrier of subblock rotated by , 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 inverse FFTs for candidates, but its search grows exponentially in . The page uses the unitary DFT pair , and 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 data symbols with , a partition of the subcarriers into subblocks , a set of allowed phase factors of magnitude 1, and an oversampling factor , usually 4. The output is a vector of factors and the oversampled OFDM symbol of the rotated data for , 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
PTS(X[0..N-1], S_1..S_V, W, L)- 1
for v ← 1 to V - 2
x_v ← √L · F_LNᴴ (X on S_v, 0 elsewhere, with (L-1)N zeros in the middle) - 3
best ← ∞ - 4
for each (b_2, .., b_V) in W^(V-1), with b_1 = 1 - 5
x ← Σ_v b_v · x_v ▷ the symbol of the rotated data, by linearity - 6
r ← max_m |x[m]|² / mean_m |x[m]|² - 7
if r < best then best ← r; b* ← b - 8
return b*, Σ_v b*_v · x_v ▷ send the symbol and the V - 1 factors
Lines L1 and L2 compute the partial transmit sequences, each with one inverse FFT of size . The zeros go in the middle of each spectrum, because the indices are the negative frequencies. Lines L4 to L7 search every combination of the free factors; line L5 forms the candidate with multiplications and additions, which are only sign changes and swaps for . Line L8 sends the best candidate. The side information is bits. The receiver equalizes and computes for .
Example
Take QPSK subcarriers, , adjacent subblocks of 16 subcarriers and , so 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 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 | |
|---|---|---|---|---|---|
| plain OFDM | 1 | 0 | 7.36 dB | 9.48 dB | 0.613 |
| , , adjacent | 4 | 2 | 6.75 dB | 8.20 dB | 0.300 |
| , , adjacent | 8 | 3 | 6.32 dB | 7.38 dB | 0.083 |
| , , adjacent | 64 | 6 | 5.78 dB | 6.81 dB | none in 300 |
| , , interleaved | 64 | 6 | 6.13 dB | 7.38 dB | 0.030 |
| , , adjacent | 128 | 7 | 5.53 dB | 6.22 dB | none in 300 |
Adjacent subblocks do better than interleaved ones (subcarrier in subblock ) with the same number of candidates. The reason is that an interleaved subblock has a time signal that repeats 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: with 2 phases beats with 4 phases.
Correctness
The claim is that line L8 returns the factors that minimize the PAPR over all of , together with the exact OFDM symbol of the rotated data, and that the receiver recovers exactly. The key fact is linearity: the map from subcarrier values to the oversampled symbol is linear, and the subblocks are disjoint, so is exactly the symbol of the rotated data. The loop invariant is that is the smallest PAPR among the vectors tried so far, and is the first vector that reaches it. Fixing loses nothing when 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 be the data and let the subcarriers be split into disjoint subblocks that cover . Let be a finite set of complex numbers of magnitude 1 (for example ). For a vector , the rotated data are for . Write for the map of line L2 from subcarrier values to the oversampled symbol, , where puts zeros in the middle of . We work in exact arithmetic.
Lemma 1 (linearity). is linear, so with , the symbol of the subblock alone,
Proof. is a linear map, since it only places values and zeros, and is linear. The rotated data are , because the subblocks are disjoint and cover all subcarriers. Apply to both sides.
So line L5 computes the exact oversampled symbol of , the one a direct inverse FFT of would give.
Lemma 2 (loop invariant). After the iterations of line L4 over a prefix of in its fixed order, the stored value is the minimum of over the vectors seen so far, and is the first vector that reaches it.
Proof. By induction on the number of iterations. Before the loop (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.
Theorem 1 (the search is exact). Line L8 returns a vector with that minimizes over all , and the symbol .
Proof. Lemma 2 at the end of the loop, which visits every element of once, and Lemma 1 for the symbol.
Lemma 3 (fixing loses nothing). For any with , . So if is closed under division (a group, such as or ), the minimum over equals the minimum over all of .
Proof. by linearity, and multiplying every sample by with changes neither nor the mean power. For take ; then has first entry 1 and, since is a group, all its entries in .
Theorem 2 (never worse than OFDM, and exact recovery). The returned PAPR is at most the PAPR of plain OFDM of . If the receiver gets and knows and the partition, then for .
Proof. The vector is in the search space and gives , so Theorem 1 gives the first claim. For the second, .
Complexity
The inverse FFTs cost . The search tries vectors, each at for the sum and the PAPR, so one block costs operations in the real-RAM model, and the memory is for the partial sequences. The search term dominates quickly: for , , and it is 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. inverse FFTs give candidates. Selected mapping needs one inverse FFT for each candidate.
- Exponential search. The number of candidates grows as , and the search, not the transforms, sets the cost for above about 4.
- Side information. 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 and .
Variants and improvements
- Sub-optimal search. An iterative search flips one factor at a time and keeps the change if the PAPR falls, with candidates instead of . 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 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 ranks the candidates by their samples only, and the selected symbol can still have a peak between samples. Use 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 too. Letting line L4 range over all of multiplies the work by and finds nothing better, because a common phase does not change the PAPR. Fix .
- Interleaved partition by default. Choosing 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.
# 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
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag JND5P6 Edit this page History Report an error Markdown