DEVICE AND METHOD FOR CODING OR DECODING MESSAGES USING A POLAR CODE

DE602020054158T2Active Publication Date: 2025-07-09HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602020054158
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-01-27
Publication Date
2025-07-09
Estimated Expiration
2040-01-27

AI Technical Summary

Technical Problem

Existing polar-code-based encoding and decoding devices and methods are too complex and inefficient, particularly when handling multiple information bits, leading to increased block error rates due to independent transmissions.

Method used

Implement a sliding window polar code framework that encodes and decodes data using a sequential XOR operation and a sliding window mechanism, reducing complexity by processing data in blocks and utilizing a transformation matrix T = W 2S ⊗ T M/2, with on-the-fly encoding and decoding processes.

Benefits of technology

The proposed method improves Bit Error Rate (BLER) performance without increasing computational complexity, achieving results comparable to full-length polar codes in Device-to-Device (D2D) scenarios.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to encoding and decoding data. In particular, it relates to encoding and decoding data using a polar code. Thereby, embodiments of the invention provide devices and methods for encoding and decoding data for applying a sliding window.BACKGROUND

[0002] Channel codes are essential in all digital communications systems. A system for forward error correction (FEC) coding, also called generally a coding scheme, consists of an encoder at the transmitter side and a decoder at the receiver side. The encoder adds redundancy to the data to be transmitted, i.e. additional redundant data, and the decoder exploits this redundancy to correct transmission errors, such that the receiver can obtain the transmitted data free of errors despite a noisy communication channel between encoder and decoder.

[0003] In particular, polar codes are linear block codes that rely on the polarization effect (see, e.g., E. Arikan, "Channel polarization: A method for constructing capacity achieving codes for symmetric binary-input memoryless channels", IEEE Transactions on Information Theory, vol. 55, no. 7, pp. 3051-3073, July 2009), which allows to sort bit positions of so-called bit-channels in order of reliability. As the code length goes toward infinity, the polarization phenomenon influences the reliability of bit-channels, which are either completely noisy or completely noiseless. Even more, the fraction of noiseless bit-channels equals the channel capacity.

[0004] The reliability of the channels can be determined according to the Bhattacharyya parameter: Z W = ∑ y ∈ Y W y 0 W y 1 where W is a binary memoryless symmetric channel, and W(y|0), W(y|1) are transition probabilities, Y is the output alphabet and Z is the Bhattacharyya parameter. The lower the Bhattacharyya parameter, the more reliable the channel. Other methods may be used to estimate bit-channel reliabilities. For example, a density evolution method (DE) may be used, and for additive white Gaussian noise (AWGN) the channels reliabilities may be determined according to a Gaussian approximation (GA). Other categories of noisy channels may be modelled such as a binary symmetric channel (BSC) or a binary erasure channel (BEC), for example, using Monte-Carlo statistical methods.

[0005] For finite practical code lengths, the polarization of bit-channels is incomplete. Therefore, there are bit-channels that are partially noisy. The polar encoding process consists in the classification of the bit-channels into two groups: the most reliable bit-channels that will carry the information bits and are indexed by the information set, and the less reliable bit-channels that are fixed to a predefined value (usually 0) and are indexed by the frozen set. In case of finite code lengths, the bit-channels with the highest reliability are selected to form the information set, while the remaining bit-channels are frozen.

[0006] Polar codes are based on the kernel matrix T 2 = 1 0 1 1 .

[0007] Encoding of such a polar code of length N = 2 n< and information length K is explained in the following. The frozen set F of size N-K is chosen, as described above. The bits u i of the input vector u are set to 0 for i ∈ F and to the information bits otherwise. The codeword x is computed as x = uT with the transformation matrix T = T 2 ⊗ n , ⊗n denoting the n-fold Kronecker product.

[0008] As a generalization, different kernels of different sizes can be introduced in the code design, obtaining a multi-kernel polar code (see, e.g., V. Bioglio et al., "Multi-kernel construction of polar codes", 2017 IEEE International Conference on Communications Workshops (ICC Workshops), Paris, 2017, pp. 761-765.). As a result, the transformation matrix takes the form T = T a ⊗ T b ⊗ ... ⊗ T g , and the frozen set has to be calculated accordingly.

[0009] Polar code decoding can be based on a Successive Cancellation (SC) decoding algorithm (see, e.g., the aforementioned work of Arikan), which is inherently sequential. It can be viewed as a binary tree search, where bits are estimated at leaf nodes, and the tree is traversed depth-first, with priority given to the left branch. In SC decoding, the decoder starts with a decision for bit u 1 and feeds this decision back into the decoding process.

[0010] Then, it makes a decision of bit u 2 and feeds this decision back into the decoding process. It proceeds in this fashion until it obtains the design for the last bit u N .

[0011] SC list decoding (SCL) is an enhanced version of SC, wherein the decision is postponed to the end of the decoding process, and is usually performed with the help of a cyclic redundancy check (CRC) (see, e.g., O. Afisiadis et al., "A low-complexity improved successive cancellation decoder for polar codes", in Asilomar Conf. on Signals, Syst., and Comput., Nov 2014, pp. 2116-2120).

[0012] When too many information bits need to be transmitted, they are usually divided into blocks and transmitted separately on an independent codeword of length M. However, independent transmissions increase the block error rate of the system, since information is correctly recovered, only if all the S codewords are decoded correctly. Even a single error in one of the transmission results in an overall decoding failure.

[0013] Moreover, many polar-code-based encoding and decoding devices and methods are too complex. Thus, there is generally a need for improved devices for coding data using polar codes.

[0014] Vangala Harish et al: "A new multiple folded successive cancellation decoder for polar codes", 2014 IEEE Information Theory Workshop (ITW 2014, 2 November 2014, pages 381-385, DOI: 10.1109 / ITW.2014.6970858) discloses a folding technique using a two stage concatenated interpretation of the standard polar encoder, including a pre-processing stage referred to as interleaved polar encoding (IPE) stage followed by a block-wise polar encoding (BPE) stage. Each stage includes independent polar-like codes, which are encoded / decoded in parallel. The BPE stage is SCL decoded and the IPE stage is maximumlikelihood decoded (MLD). The BPE stage encoding may constitute an element-wise XOR on bit components.

[0015] Mediatek Inc: "Resolving Polar Code Memory Complexity Issue", 3GPP draft R1-1609338, RAN WG1, Lisbon, Portugal, discloses subcode-wise polar encoding and decoding for reducing memory complexity, where SCL decoding is applied subcode-wise while simple SC decoding is used across subcodes to exploit the polarization gain. Then, hard decision is amde after each subcode decoding, confining the SCL decoder complexity to the subcode size. The overall decoder complexity is reduced from whole-codeblock SCL to one subcode SCL decoding plus one whole-codeblock decoding.SUMMARY

[0016] In view of the above-mentioned disadvantages, the present disclosure aims to improve devices and methods for encoding and decoding based on polar code. An object is, in particular, to provide a polar-code based encoding device and method, and to provide a polar-code based decoding device and method, which devices and methods can operate with reduced complexity.

[0017] The object is achieved by the embodiments provided in the appended claims.BRIEF DESCRIPTION OF DRAWINGS

[0018] The above described aspects and implementation forms of the present invention will be explained in the following description of specific embodiments in relation to the enclosed drawings, in which: FIG. 1shows a communication system comprising a device for encoding an input sequence according to an embodiment; FIG. 2shows an exemplary message encoded by a device according to an example which is not covered by the claims; FIG. 3shows a schematic representation of matrices used to encode an input sequence according to an embodiment; FIG. 4shows a schematic representation of an input sequence encoded by a device according to an embodiment; FIG. 5shows a communication system comprising a device for encoding an input sequence according to an embodiment; FIG. 6shows a communication system comprising a device for encoding an input sequence according to an embodiment; FIG. 7shows a codeword encoded by a device according to an embodiment; FIG. 8shows a method for encoding an input sequence comprising a message according to an embodiment; FIG. 9shows a method for decoding a sequence comprising a message according to an embodiment. DETAILED DESCRIPTION OF EMBODIMENTS

[0019] Fig. 1 shows a data communication system 100 comprising a device 101 ("encoder") according to an embodiment of the invention. The device 101 is configured to encode an input sequence u, which comprises the bits of a message m, into a codeword x using a polar code.

[0020] The device 101 is generally configured to obtain the input sequence u to be transmitted (the "input sequence" may also be termed "information word" or "input vector"), and to produce the codeword x, which may contain redundancy. This codeword x may, then, be transmitted over a noisy communication channel 102 to a device 103 ("decoder") for decoding, e.g., according to another embodiment of the invention. This transmission typically introduces errors. The noisy signal may be received by the decoder 103 as a sequence of bits y (the "sequence of bits" may also termed "output vector"). The decoder 103 may then use the received bit values to calculate estimates of the transmitted codeword x and the transmitted message m. The set of possible codewords is called the code, or the channel code. In this embodiment, a polar code is used at the encoder 101 to encode the input sequence u. Both the encoder 101 and decoder 103 may know the polar code and, thus, may be aware of positions of the frozen bits F or information set I, respectively. The information set I (sometimes also called "reliability sequence") may be used by the decoder 103 in both determining the input sequence u (e.g. during successive decoding) and in extracting the message bits m from the input sequence u.

[0021] In particular, the encoder 101, according to the embodiment of the invention, is configured to sequentially encode each of a plurality of blocks u i of the input sequence u based on an XOR operation to obtain a codeword block x' i of the codeword x'. Further, the encoder 101 is configured to sequentially output each obtained codeword block x' i of the codeword x'.

[0022] Moreover, the decoder 103 is configured to decode the sequence of bits y into an output sequence u using the polar code. The sequence of bits y represents the codeword x after transmission over the (noisy) communication channel 102. The decoder 103, according to an embodiment of the invention, is configured to sequentially decode each of a plurality of blocks of the sequence of bits y by applying a sliding window, in order to obtain an auxiliary sequence u'. Further, the decoder 103 is configured to process the auxiliary sequence u' to obtain the output sequence u, wherein each block of the output sequence u is processed based on an XOR operation of a block of the auxiliary sequence u i ' and a previous block of the auxiliary sequence u i-1 '. Furthermore, the device 103 can be configured to obtain message bits m from the output sequence u.

[0023] For the sake of the completeness, in the following, a summary of the theory behind the sliding window polar coding, as applied in embodiments of the invention, is given.

[0024] A sliding window polar code of length N and dimension K according to the invention, which it is decodable through a sliding window of size M, is designed as follows. Given S = N / M, its transformation matrix can be defined as T = W 2S ⊗ T M / 2 , where T M / 2 = T 2 ⊗ m , with m = log 2 (M / 2), is the transformation matrix of a classical polar code of length M / 2, while W 2S is a full binary lower triangular matrix of size 2S. This matrix is given by a square matrix of size 2S × 2S having ones on and below the diagonal, and zeros above the diagonal. The resulting transformation matrix T can be described as a multi-kernel polar code (see the aforementioned work of Bioglio et al.). This also permits to calculate the frozen set F accordingly.

[0025] In the following, as also exemplarily illustrated in Fig. 2, an example of the proposed framework for a sliding window polar code of length N = 16 and dimension K=8 with window size M = 8 is given. Fig. 2 is not according to the claimed invention but represents an example useful to understand the invention It is assumed that a message m = 00011110 is to be encoded. This message m can be encoded by means of the matrix T= W 4 ⊗ T 4 , wherein numerical representation of the matrices W 4 , T 4 , and T are shown as example in Fig. 3. In order to perform the encoding of the message m, the information set I or, equivalently, the frozen set of bits F is needed. For the generation matrix T, the information set I is shown in Fig. 3 and may be given by I = {4,8,11,12,13,14,15,16}. Moreover, as illustrated in Fig. 3, from the information set I, sub-information sets I 1 ={4}, I 2 ={4}, I 3 ={3,4}, I 4 = {1,2,3,4} may be obtained as well as the four corresponding sub-input vectors u 1 to u 4 populated accordingly (see Fig. 2).

[0026] Depending on the sub-information set I 1 ,...I 4 , the bits of the message m may be divided in four blocks m 0 = 0001, m 1 = 1, m 2 = 1 and m 3 = 10 (see Fig. 2). The input vector blocks u i are, then, given by u 0 = 0001, u 1 = 0001, u 2 = 0001 and u 3 = 0010 (see Fig. 2). The encoder 101 may first calculate x' 1 = u 0 · T 4 = 1111 and transmits it, then other codeword block may be calculated sequentially obtaining x' 2 = (u 1 ⊕ u 0 ) · T 4 = 0000, x' 3 = (u 2 ⊕ u 0 ) · T 4 = 0000 and x' 4 = (u 3 ⊕ u 0 ) · T 4 = 0101 (see Fig. 2).

[0027] At the decoder side, received blocks may be processed in couples to recover the auxiliary input vector u'. The first input vector is retrieved as u 1 = u' 1 = 0001. After the second auxiliary input vector u' 2 = 0000 has been decoded, the second input vector block can be calculated as u 2 = u' 1 ⊕ u' 2 = 0001 and the message block m 1 = 1 can be extracted. The other message blocks may be calculated accordingly with the subsequent auxiliary input vectors. In Fig. 4, the exemplary input vector u, its shifted vector u, the vector u' obtained on the basis of u, and the corresponding codeword x' are shown. The transmitted codeword x' is received after transmission of the communication channel as vector y, as shown in Fig. 1.

[0028] The proposed polar code design and decoding procedure improves BLER performance in the Device-to-Device (D2D) scenario (see Fig. 5) without increasing the decoding computational complexity, and in some cases permitting to reach the performance of the full length polar code.

[0029] In the following, some methods for determining the information set I are described.

[0030] Under AWGN channel, the DE / GA method (see, e.g., H. Vangala, E. Viterbo, and Y. Hong, "A comparative study of polar code constructions for the AWGN channel", in arXiv preprint arXiv:1501.02473, 2015) can be used to evaluate bit-channels polarization of kernel W 2S tracking the LLR mean as: μ i = Φ − 1 1 − 1 − Φ μ ⋅ 1 − Φ iμ , i < 2 S 2 Sμ , i = 2 S where µ is the imput LLR mean and function ϕ can be calculated as described in J. Ha, J. Kim, and S. W. McLaughlin, "Rate-compatible puncturing of low-density parity-check codes", IEEE Transactions on Information Theory, vol. 50, no. 11, pp. 2824-2836, 2004. Using the above metrics, the reliability of each bit of the input vector u can be calculated. The K bits having the highest reliability may form the information set I, while the indices of the remaining N - K bit-channels may form the frozen set F of the code. The K message bits may then be inserted in the input vector u according to the information I set previously calculated, namely storing their values in the indices listed in I, while the remaining bits of u are set to zero. Codeword x' is then calculated as x' = u · T and transmitted through the channel 102 (see Fig. 7).

[0031] The N channel LLRs may be stored in the vector y (see Fig. 7). The decoder 103 may perform 2S polar decoding of (M / 2, K t ) polar codes. Upper LLRs L 0 may be initialized to zero (see Fig. 7). At step t, a sub-information set I t may be calculated from the information set I as the set of entries of I comprised between t − 1 ⋅ M 2 + 1 and t · M / 2 reduced by (t - 1) ·M / 2. This sub-information set may be used as the information set of a polar code having transformation matrix T M / 2 . The M / 2 LLRs for this decoder 103 may be calculated as follows on the basis of y: the vector L 1 = y t − 1 ⋅ M 2 + 1 , … , y t ⋅ M 2 is extracted from y, while a second vector L 2 of length M / 2 is calculated as: L 2 i = y t ⋅ M 2 + i , t < 2 S ∞ , t = 2 S

[0032] The LLRs to be given to the current decoder are calculated on the basis of these two vectors as = (L 0 + L 1 ) L 2 , where

[0033] Next, the (M / 2, K t ) polar code defined by I t may be decoded via SC using L as channel LLRs. Decoding can be performed with any other polar decoder (device 103), e.g. SCL. The resulting input vector u t can then used to calculate the partial sums used in the SC decoding as x t = u t · T M / 2 ; these partial sums are then used to update the upper LLRs L 0 as L 0 = (L 0 + L 1 ) · (1 - 2x t ). When t = 2S, decoding is concluded, and input vector u is calculated appending all the sub input vectors as u = [u 1 u 2 ... u 2S ].

[0034] As first, the device 101 may be configured to encode portions of the input vector u independently using a classical polar code. Moreover, the sliding window encoder mechanism may be implemented by the device 101 to perform on-the-fly encoding of incoming bits of message m.

[0035] The device 101 may divide the input vector u into 2S blocks of length M / 2 as u = [u 1 u 2 ... u 2S ] and polar encode each block independently, i.e. by matrix multiplication with channel transformation matrix of size M / 2 as c i = u i · T M / 2 . According to an example which is not covered by the claims, these intermediary polar codewords c i can be used to create a sliding window polar codeword x', having a peculiar input vector u', by transmitting first the last one and performing a XOR operation with all the subsequent polar codewords before transmission. As a consequence, the final transmitted codeword x' is obtained as x' = [c 2S |c 1 ⊕ c 2S |c 2 ⊕ c 2S | ... |c 2S-1 ⊕ c 2S ].

[0036] The rationale to obtain the described framework can be found in the structure of the channel transformation matrix of a sliding window polar code. The codeword may be created on-the-fly without waiting to collect all the bits of the message m. In and embodiment which is not covered by the claims, starting from the original input vector u = [u 1 u 2 ... u 2S ], this result can be obtained creating the auxiliary input vector u' = [u' 1 u' 2 ... u' 2S ] imposing u' i = u i-1 ⊕ u i with u 0 = 0. This auxiliary input vector u' may then have the structure u' = [u 1 |u 1 ⊕ u 2 |u 2 ⊕ u 3 | ... |u 2S-1 ⊕ u 2S ]. Given the nested property of frozen sets, it is known that I i-1 ⊇ I i , where I i is the information set of input vector block u i , so that u and u' share the same frozen set and u' is then well defined. This intermediary vector is in fact the input vector of codeword x' calculated with the proposed framework, x' = u' · T, since u' · T = [u 2S · T M / 2 |(u 1 ⊕ u 2S ) · T M / 2 |(u 2 ⊕ u 2S ) · T M / 2 | ... |(u 2S-1 ⊕ u 2S ) · T M / 2 ]. As a consequence, the result of sliding window decoding of transmitted codeword x' will be the intermediary input vector u'. However, input vector u is needed to extract message bits, hence a further post processing step is needed at the receiver to retrieve message bits.

[0037] At the side of the decoder 103, channel outcomes y corresponding to codeword x' can be decoded by applying the sliding window. As discussed previously, the result of the decoding process is the auxiliary input vector u'. This vector has to be post-processed to retrieve the original input vector u. This process consists of performing a XOR operation of each input vector block with the previously decoded one such that u i = u' i-1 ⊕ u' i with u' 0 = 0. As a consequence, original input vector can be calculated as u = [u' 1 |u' 1 ⊕ u' 2 |u' 2 ⊕ u' 3 | ... |u' 2S-1 ⊕ u' 2S ].

[0038] Therefore, the proposed framework permits to create codes based on polarization that have on-the-fly encoding and decoding. The last input vector block u 2S may be moved to the beginning of the message m. It can be supposed that the K bits of message m are going to be transmitted through a sliding window polar code of length N and dimension K with window size M and information set I. For each block u i forming the input vector u it is in this case possible to extract a sub-information set I i of size K i . The K message bits stored in vector m are then divided into 2S blocks as m = [m 0 m 1 m 2 ... m 2S-1 ] of size K 0 , K 1 , K 2 , ... , K 2S-1 respectively, where |m 0 | = K 2S and I 0 = I 2 S . In and embodiment which is not covered by the claims, each block x' i of encoded vector x' is then calculated as x' i = (u i-1 ⊕ u 0 ) · T M / 2 for i = 1, ... ,2S, with the exception of first block that is calculated as x' 1 = u 0 · T M / 2 . Each block of codeword x' is then calculated using only two sub-input vectors, namely the very first and the current one.

[0039] At the decoder 103 side, the sliding window decoding may output blocks of auxiliary input vector u' sequentially. On-the fly decoding may calculate original input vector blocks as u i = u' i-1 ⊕ u' i and extract message bits m i . Last input vector block u 2S is used to calculate first message block m 0 .

[0040] FIG. 6 shows a communication system 100 comprising the device 101 for encoding the input sequence u according to an embodiment.

[0041] In particular, Fig. 6 shows the wireless communication system 100 including a base station 101 and user equipment (UE) 103 where the UE 103 may be a portable device such as a smart phone or tablet. The base station 101 includes a transmitter and the UE 103 a receiver, whereby the base station 101 is able to transmit data to the UE 103, for example, in a downlink or uplink connection 102 made according to a telecommunications protocol. Embodiments of the invention may be applied in various communications systems. For example, it could be applied to any of a Global System for Mobile Communications (GSM), code division multiple access (CDMA), wideband code division multiple access (WCDMA), general packet radio service (GPRS), long term evolution (LTE), LTE frequency division duplex (FDD), LTE Time Division Duplex (TDD), a universal mobile telecommunications system (UMTS), enhanced mobile broadband (eMBB), ultra-reliable low-latency communications (URLLC) and massive machine-type communications (mMTC), or any 5th generation (5G) wireless communication system.

[0042] FIG. 8 shows a method 800 for encoding an input sequence comprising message bits into a codeword using a polar code according to an embodiment.

[0043] The method 800 comprises the steps of: sequentially encoding 801 each of a plurality of blocks of the input sequence, encoding 802 each block of the input sequence based on an XOR operation of the block and a previous block of the input sequence, to obtain a codeword block of the codeword; and sequentially outputting 803 each obtained codeword block of the codeword.

[0044] FIG. 9 shows a method 900 for decoding a sequence of bits into an output sequence using a polar code, wherein the sequence of bits represents a codeword after a transmission over a communication channel 102 according to an embodiment.

[0045] The method 900 comprises: sequentially decoding 901 each of a plurality of blocks of the sequence of bits by applying a sliding window, in order to obtain an auxiliary sequence, processing 902 the auxiliary sequence to obtain the output sequence, wherein each block of the output sequence is processed based on an XOR operation of a block of the auxiliary sequence and a previous block of the auxiliary sequence.

[0046] In the claims as well as in the description, the word "comprising" does not exclude other elements or steps and the indefinite article "a" or "an" does not exclude a plurality. A single element or other unit may fulfill the functions of several entities or items recited in the claims. The mere fact that certain measures are recited in the mutual different dependent claims does not indicate that a combination of these measures cannot be used in an advantageous implementation.

Claims

1. A device (101) for encoding an input sequence comprising message bits into a codeword of a sliding window polar code of length N and dimension K which is decodable through a sliding window of size M, where a transformation matrix of the sliding window polar code is defined as T = W2S ⊗ TM / 2, where S = N / M and m = log2(M / 2), and where TM / 2 is a transformation matrix of a classical polar code based on a kernel matrix T 2 = 1 0 1 1 , defined as T M / 2 = T 2 ⊗ m , and where W2S is a full binary lower triangular matrix of size 2Sx2S, wherein the device is configured to: - sequentially encode each of a plurality of blocks of the input sequence by applying the transformation matrix, TM / 2 to an auxiliary sequence to sequentially obtain each block of the codeword, wherein the auxiliary sequence is obtained by performing an XOR operation to the block and a previous block of the input sequence, or in case of the first block of the input sequence, the XOR operation is not performed; and - sequentially output each obtained codeword block of the codeword.

2. The device (101) of claim 1, wherein the previous block is a predetermined block or wherein the previous block is equal to the last block of the input sequence.

3. The device (101) of any one of the preceding claims, wherein the device (101) is configured to: - determine a reliability of bit positions of each block of the input sequence ui; - determine an information set Ii of size Ki for each block of the input sequence ui, wherein Ki corresponds to a size of a corresponding block of the message bits mi and wherein the set Ii corresponds to the Ki bit positions of each block of the input sequence ui having the highest reliability; and - generate each block of the input sequence ui by placing the message bits mi in the positions defined by Ii.

4. A device (103) for decoding a sequence of bits into an output sequence using a sliding window polar code, wherein the sequence of bits represents a codeword after a transmission over a communication channel (102), wherein the sliding window polar code is of length N and dimension K and is decoded through a sliding window of size M, where a transformation matrix of the sliding window polar code is defined as T = W2S ⊗ TM / 2, where S = N / M and m = log2(M / 2), and where TM / 2 is a transformation matrix of a classical polar code based on a kernel matrix T 2 = 1 0 1 1 , defined as T M / 2 = T 2 ⊗ m , and where W2S is a full binary lower triangular matrix of size 2Sx2S, wherein the device (103) is configured to: - sequentially decode each of a plurality of blocks of size M / 2 of the sequence of bits by applying the sliding window to obtain an auxiliary sequence; and - process the auxiliary sequence to obtain the output sequence is based on an XOR operation of a block of the auxiliary sequence and a previous block of the auxiliary sequence,.

5. The device (103) of claim 4, wherein the device (103) is further configured to extract message bits from the output sequence.

6. A method (800) for encoding an input sequence comprising message bits into a codeword of a sliding window polar code, of length N and dimension K which is decodable through a sliding window of size M, where a transformation matrix of the sliding window polar code is defined as T = W2S ⊗ TM / 2, where S = N / M and m = log2(M / 2), and where TM / 2 is a transformation matrix of a classical polar code based on a kernel matrix T 2 = 1 0 1 1 , defined as T M / 2 = T 2 ⊗ m , and where W2S is a full binary lower triangular matrix of size 2Sx2S, wherein the method (800) comprises: - sequentially encoding (801) each of a plurality of blocks of the input sequence by applying the transformation matrix, TM / 2 to an auxiliary sequence to sequentially obtain a each block of the codeword, wherein the auxiliary sequence is obtained by performing an XOR operation to the block and a previous block of the input sequence, or in case of the first block of the input sequence, the XOR operation is not performed; and - sequentially outputting (803) each obtained codeword block of the codeword.

7. A method (900) for decoding a sequence of bits into an output sequence using a sliding window polar code, wherein the sequence of bits represents a codeword after a transmission over a communication channel (102), wherein the sliding window polar code is of length N and dimension K and is decoded through a sliding window of size M, where a transformation matrix of the sliding window polar code is defined as T = W2S ⊕ TM / 2, where S = N / M and m = log2(M / 2), and where TM / 2 is a transformation matrix of a classical polar code based on a kernel matrix T 2 = 1 0 1 1 , defined as T M / 2 = T 2 ⊗ m , and where W2S is a full binary lower triangular matrix of size 2Sx2S, wherein the method (900) comprises: - sequentially decoding (901) each of a plurality of blocks of size M / 2 of the sequence of bits by applying the sliding window to obtain an auxiliary sequence; and - processing (902) the auxiliary sequence to obtain the output sequence, is based on an XOR operation of a block of the auxiliary sequence and a previous block of the auxiliary sequence.

8. A computer program comprising a program code for performing the method (800, 900) according to claim 6 or 7, when executed on a computer.