3.0 - Non-Integer Data Encoding in Quantum States

The lecture slides are available here. Download here.


This lecture explores the methods for representing non-integer values in binary, explicitly focusing on fixed-point representation.

Fixed-point representation involves splitting a register into two sections, one for encoding the integer part and the other for the fractional part, with qubits assigned different weights to represent increasing powers of two and 1/2, respectively.

Additionally, we introduce the Q notation, denoted as Qn.m, which describes an n-bit register with m fractional bits. We illustrate the concept's practical application by decoding a number into fixed-point representation and emphasize how increasing the number of bits on either side of the register expands the range or enhances the accuracy of non-integer value representation.