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.
Glossary
IQ Samples

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.
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).
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.
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
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
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
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
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
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
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
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.
Related Terms
Master the core signal processing and machine learning concepts that form the basis of IQ sample-based modulation recognition.
Complex Baseband Representation
The mathematical framework that underpins IQ samples. A bandpass signal is frequency-shifted to center at zero hertz, producing a complex-valued signal s(t) = I(t) + jQ(t). This representation preserves all amplitude and phase information of the original modulated waveform while enabling processing at dramatically lower sample rates. The in-phase (I) component is the real part, and the quadrature (Q) component is the imaginary part, forming a complex envelope that fully describes the modulation state.
Constellation Diagram
A two-dimensional scatter plot of IQ samples on the complex plane, where the I component is the x-axis and the Q component is the y-axis. Each point represents a transmitted symbol at a specific sampling instant. The geometric arrangement of these clusters directly reveals the modulation scheme:
- QPSK: 4 distinct clusters at 90° intervals
- 16-QAM: 16 clusters in a 4x4 grid
- 8-PSK: 8 clusters on a circle Constellation diagrams are the primary visual input for CNN-based modulation classifiers.
Nyquist Sampling and Aliasing
The Nyquist-Shannon sampling theorem dictates that a bandlimited signal must be sampled at a rate at least twice its bandwidth to enable perfect reconstruction. For IQ samples, the complex sampling rate must exceed the signal's information bandwidth. Undersampling causes aliasing, where high-frequency components fold into the observed spectrum, corrupting the constellation diagram and making modulation classification unreliable. Practical systems often sample at 2.5x to 4x the symbol rate to preserve pulse shape characteristics.
Pulse Shaping and Inter-Symbol Interference
Before transmission, digital symbols are filtered by a pulse-shaping filter (e.g., Root-Raised Cosine) to limit bandwidth. At the receiver, a matched filter maximizes SNR. The IQ samples captured between these filters contain the shaped pulses. Inter-Symbol Interference (ISI) occurs when pulse tails from adjacent symbols overlap at the sampling instant, distorting the constellation. Proper timing synchronization is critical to sample at the eye diagram's maximum opening to minimize ISI and enable accurate classification.
IQ Imbalance and Hardware Impairments
Real-world direct-conversion receivers introduce IQ imbalance: gain mismatch between I and Q branches and phase error deviating from the ideal 90° offset. This manifests as a skewed and rotated constellation that does not match the ideal modulation template. The received IQ samples become r(t) = α * s(t) + β * s*(t), where the conjugate term s*(t) creates an image interference. Deep learning classifiers trained on hardware-in-the-loop data can learn to be robust to these impairments without explicit compensation.
Sample Rate vs. Symbol Rate
A critical distinction in IQ sample processing. The sample rate (fs) is the rate at which the analog-to-digital converter produces IQ pairs. The symbol rate (Rs) is the rate at which modulation symbols are transmitted. The ratio fs/Rs defines samples per symbol (SPS). A classifier's input tensor typically requires a fixed number of samples, so the SPS determines how many symbols are captured in one inference window. Higher SPS preserves more pulse shape detail but increases computational load. Typical values range from 2 to 8 SPS.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us