Inferensys

Glossary

IQ Samples

The raw, time-domain digital representation of a radio signal consisting of paired In-Phase and Quadrature component values that capture both amplitude and phase information.
Finance professional using AI FP&A copilot on laptop, board presentation visible on screen, home office work session.
IN-PHASE & QUADRATURE DATA

What is IQ Samples?

IQ samples are the raw, time-domain digital representation of a radio signal, consisting of paired In-Phase (I) and Quadrature (Q) component values that capture both the instantaneous amplitude and phase of a waveform.

An IQ sample is a complex numerical pair representing a signal's state at a specific instant, where the In-Phase (I) component is the projection onto the cosine carrier and the Quadrature (Q) component is the projection onto the sine carrier. This dual-value format preserves the complete vector information of the modulated waveform, enabling direct mathematical manipulation of amplitude and phase without loss of information, making it the foundational data type for all modern digital signal processing and software-defined radio systems.

In deep learning modulation recognition, raw IQ sample streams are fed directly into neural networks like Convolutional Neural Networks (CNNs) or Long Short-Term Memory (LSTM) architectures, bypassing manual feature engineering. The model learns to extract hierarchical temporal and structural features directly from the complex baseband time-series, allowing it to classify modulation schemes such as QPSK or 16-QAM by recognizing patterns in the sequential I and Q values, even under challenging conditions like multipath fading and low signal-to-noise ratio (SNR).

SIGNAL REPRESENTATION FUNDAMENTALS

Key Characteristics of IQ Samples

IQ samples form the foundational data structure for modern digital signal processing, capturing the complete instantaneous state of a modulated waveform through paired orthogonal components.

01

Complex-Valued Representation

Each IQ sample is a single complex number where the real part is the In-Phase (I) component and the imaginary part is the Quadrature (Q) component. This mathematical formulation preserves both amplitude and phase information simultaneously.

  • Instantaneous amplitude: √(I² + Q²)
  • Instantaneous phase: arctan(Q/I)
  • Enables direct manipulation in the complex plane without loss of information
  • Forms the native data type for software-defined radio (SDR) processing chains
02

Orthogonal Basis Decomposition

The I and Q components are derived by mixing the incoming RF signal with two local oscillator signals that are exactly 90 degrees out of phase. This orthogonality ensures the two channels carry independent information.

  • I channel: mixed with cos(2πf_c t)
  • Q channel: mixed with sin(2πf_c t)
  • Perfect orthogonality prevents cross-channel interference
  • Any mismatch in the 90-degree phase shift introduces IQ imbalance, a hardware impairment that degrades classification accuracy
03

Nyquist-Constrained Sampling Rate

IQ samples must be captured at a rate that satisfies the Nyquist-Shannon sampling theorem relative to the signal's complex baseband bandwidth. For a bandpass signal of bandwidth B, the complex sampling rate must be at least B samples per second.

  • Complex sampling provides twice the spectral efficiency of real sampling
  • A 20 MHz LTE channel requires a minimum complex sample rate of 20 MSPS
  • Undersampling introduces aliasing artifacts that distort the constellation structure
  • Practical systems often oversample at 2-4x the symbol rate to preserve pulse shape features
04

Temporal Sequence Structure

A stream of IQ samples forms a discrete-time series where the ordering encodes the temporal evolution of the modulated waveform. This sequential nature makes IQ data inherently suitable for recurrent and transformer-based neural architectures.

  • Each sample represents one point in the complex plane at a specific time instant
  • Symbol-rate sampling yields one sample per transmitted symbol
  • Oversampled streams capture inter-symbol transition trajectories
  • The temporal correlation between adjacent samples is a key feature exploited by LSTM and self-attention mechanisms for modulation recognition
05

Hardware-Impaired Realism

Real-world IQ samples contain non-ideal artifacts introduced by the receiver's analog front-end that must be accounted for in robust classification models. These impairments become part of the learned feature distribution.

  • DC offset: a constant bias in the I or Q channel from local oscillator leakage
  • IQ gain imbalance: amplitude mismatch between the I and Q paths
  • Phase noise: random fluctuations in the local oscillator's phase
  • Carrier frequency offset (CFO): residual frequency error after downconversion
  • Training on synthetic data alone without impairment modeling leads to brittle classifiers that fail on real hardware captures
06

Dimensionality for Deep Learning Input

When fed into neural networks, IQ samples are typically structured as a 2 × N real-valued matrix or a 1 × N complex-valued vector, where N is the number of time samples in the observation window.

  • Common input shape for CNNs: [batch_size, 2, sequence_length] with I and Q as separate channels
  • For complex-valued networks: [batch_size, sequence_length] with native complex arithmetic
  • Typical observation windows range from 128 to 1024 samples for modulation classification
  • Longer sequences capture more temporal context but increase computational latency
  • The choice of input length represents a trade-off between classification confidence and real-time processing constraints
IQ SAMPLES EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the raw digital representation of radio signals used in modern machine learning classifiers.

IQ samples are the raw, time-domain digital representation of a radio signal, consisting of paired In-Phase (I) and Quadrature (Q) component values that capture both the instantaneous amplitude and phase of a waveform. Unlike a simple real-valued voltage reading that only records amplitude over time, IQ sampling decomposes a bandpass signal into its complex baseband equivalent. The I component is the projection of the signal onto a reference cosine carrier, while the Q component is the projection onto a 90-degree-shifted sine carrier. Together, they form a complex number I + jQ for each sample, where the magnitude sqrt(I² + Q²) gives the instantaneous envelope amplitude and the arctangent atan2(Q, I) gives the instantaneous phase. This dual-channel representation preserves the full vector nature of the modulated signal, enabling digital signal processing algorithms to manipulate phase, frequency, and amplitude independently. For a signal sampled at rate fs, the Nyquist criterion requires fs to be at least twice the signal's bandwidth, not its carrier frequency, making IQ sampling dramatically more efficient than directly digitizing a high-frequency carrier.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.