DSPRelated.com

I/Q Signals

Category: Comms-dsp | Also known as: I and Q, I & Q, Quadrature, in-phase quadrature

I/Q signals refer to the in-phase (I) component and the quadrature (Q) component of a complex baseband signal: two representations of identical frequency that are 90 degrees out of phase with each other. While often described as a pair of sinusoidal signals for clarity, the I/Q framework applies more broadly to any complex baseband signal whose components carry that 90-degree phase relationship. Together they form a two-dimensional representation of a bandpass signal, enabling both amplitude and phase information to be captured and manipulated at baseband, subject to the practical limits of sampling, quantization, and analog implementation.

In practice

In radio and communications work, I/Q representation lets a high-frequency bandpass signal be shifted down to baseband (centered at 0 Hz) without losing any information. A hardware or software mixer multiplies the incoming signal by a cosine (producing I) and a sine (producing Q), then low-pass filters each result. This process, called complex down-conversion or quadrature demodulation, is widely used in software-defined radio (SDR) receivers and many mixed-signal RF ICs such as the Silicon Labs Si4xxx series, the Texas Instruments CC13xx/CC26xx family, and direct-conversion receivers in Wi-Fi and cellular chipsets, though some architectures use different or only partial I/Q processing.

In embedded DSP, I and Q are treated as the real and imaginary parts of a single complex sample stream. This lets software apply standard complex arithmetic — rotation, filtering, correlation — directly to the baseband data. ARM Cortex-M4/M7 and Cortex-A targets with DSP extensions, SIMD, or FPU support can process interleaved I/Q sample pairs efficiently, though actual throughput depends on clock rate, memory bandwidth, and the specific workload; CMSIS-DSP provides complex math routines that operate on this interleaved layout.

A common pitfall is gain and phase imbalance between the I and Q paths. Any mismatch in the analog hardware (mismatched filter cutoffs, quadrature error in the local oscillator splitter) introduces image interference that degrades signal quality. At complex baseband this appears as a mirror image of the desired signal on the opposite side of 0 Hz, though the exact manifestation depends on the signal's center frequency and any subsequent mixing stages; this effect is measured as image rejection ratio (IRR). Calibration or digital I/Q correction algorithms are typically required in precision designs.

Spectral orientation (which sideband appears at positive vs. negative frequencies) can also be inverted depending on whether the local oscillator sits above or below the signal of interest, or if the Q path is wired with opposite polarity. Getting this wrong silently produces a mirror-image spectrum that decodes incorrectly; the EmbeddedRelated article "Handling Spectral Inversion in Baseband Processing" covers the detection and correction of this problem.

Discussed on DSPRelated

Frequently asked

Why use two signals instead of one? What does the Q channel add?
A single real-valued bandpass signal cannot distinguish between a tone at +f and a tone at -f relative to the carrier. Adding the quadrature channel makes the signal complex, giving it a direction of rotation in the complex plane. This resolves the ambiguity, allows the full bandwidth on both sides of the carrier to carry independent information, and is what lets techniques like SSB, QAM, and OFDM work. The EmbeddedRelated article 'A Quadrature Signals Tutorial: Complex, But Not Complicated' covers this in depth.
What is the memory layout of I/Q data in practice?
The most common layout is interleaved: I0, Q0, I1, Q1, ... stored as an array of int16, int32, or float pairs. Some platforms use separate I and Q buffers (planar layout). CMSIS-DSP and most SDR APIs (librtlsdr, SoapySDR) default to interleaved. Check your peripheral's DMA descriptor format; many RF front-end ICs like the AD9361 or MAX2769 output interleaved 12- or 16-bit pairs.
How does I/Q relate to the analytic signal and the Hilbert transform?
The analytic signal is the complex signal whose real part is the original real signal and whose imaginary part is its Hilbert transform. For a properly down-converted I/Q stream, I is the real part and Q is the imaginary part, making the I/Q pair equivalent to the analytic signal at baseband. The Hilbert transform can also be used to synthesize a Q channel from a real-only input when hardware quadrature mixing is not available. See the EmbeddedRelated articles 'Analytic Signal' and 'Add the Hilbert Transformer to Your DSP Toolkit, Part 1' for more detail.
What causes the 'complex down-conversion amplitude loss' sometimes seen in receivers?
When a real (non-I/Q) mixer is used, signal power is split between the desired frequency and its image, resulting in a 3 dB loss relative to a true complex (I/Q) mixer. Additionally, DC offset and I/Q imbalance in direct-conversion architectures can cause further amplitude error. The EmbeddedRelated article 'Complex Down-Conversion Amplitude Loss' analyzes this effect quantitatively.
Can an 8-bit or resource-constrained MCU process I/Q data?
Yes, with limitations. Simple FM demodulation (atan2 of I/Q pairs, or a CORDIC approximation) runs on 8-bit AVR and PIC parts at low sample rates. More demanding tasks like narrow-band filtering or QAM decoding typically require a 32-bit core with hardware multiply or FPU. ARM Cortex-M4/M7 cores with DSP extensions handle complex FIR and FFT operations on I/Q streams efficiently using CMSIS-DSP.

Differentiators vs similar concepts

I/Q signals are sometimes conflated with "quadrature encoder" signals used in motor control and position sensing, though the contexts are usually distinct. Quadrature encoders also use two 90-degree-offset signals (typically called A and B), but they are digital pulse trains indicating shaft rotation direction and count, not representations of a bandpass communications signal. The term "quadrature" alone is therefore ambiguous outside of a clear context. Within communications and DSP, I/Q is also distinct from a simple two-channel (stereo) signal: the 90-degree phase relationship is fundamental, not incidental, and the two channels are not independent but jointly encode a single complex value.