Giter Club home page Giter Club logo

mohammad-rowshan / list-decoder-for-polar-codes-and-pac-codes Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 3.0 117 KB

A CRC-aided successive cancellation list (SCL) decoding algorithm for polar codes and PAC codes with various code constructions/rate profiles. The list decoding algorithm is an adaptive two stage successive cancellation list (SCL) algorithm. First it tries L=1 and then L=L_max. The performance is the same is list decoding with L_max.

License: GNU General Public License v3.0

Python 100.00%
decoding-algorithm polar-codes pac-codes list-decoding

list-decoder-for-polar-codes-and-pac-codes's Introduction

List Decoder for Polar Codes, CRC-Polar Codes, and PAC Codes

If you find this algorithm useful, please cite the following paper. Thanks.

M. Rowshan, A. Burg and E. Viterbo, "Polarization-Adjusted Convolutional (PAC) Codes: Sequential Decoding vs List Decoding," in IEEE Transactions on Vehicular Technology, vol. 70, no. 2, pp. 1434-1447, Feb. 2021, doi: 10.1109/TVT.2021.3052550.

https://ieeexplore.ieee.org/abstract/document/9328621

Description: This is an implementation of the successive cancellation list (SCL) decoding algorithm for polar codes, CRC-polar codes, and PAC codes with the choice of various code constructions/rate-profiles in Python. The list decoding algorithm is an adaptive two stage successive cancellation list (SCL) algorithm. That means first it tries L=1 and then L=L_max. The performance is the same as list decoding with L_max. This trick has been implemented in the simulator.py file. The rest of the files are the same as the standard list decoding algorithm.

The main file is simulator.py in which you can set the parameters of the code and the channel.

To switch between decoding polar codes and PAC codes, you need to change the generator polynomial conv_gen to conv_gen=[1] for polar codes or any other polynomial such as conv_gen=[1,0,1,1,0,1,1].

The differences between PAC codes and Polar codes are in

  • the encoding process where we have one more stage that we call convolutional precoding or pre-transformation. If conv_gen = [1], that means no precoding is performed, hence the result will be the simulation for polar codes, not PAC codes. If you look at pac_encode() method in polar_code.py file, you would find the convolutional precoding method, conv_encode(), as U = pcfun.conv_encode(V, conv_gen, mem).
  • the decoding process where we consider both 0 and 1 values for every v and obtain the corresponding u by conv_1bit() method based on the current state. Then, we calculate the path metric based on the LLR and these u values (the values 0 and 1 of each extended branch on the tree). Obviously, we need to update the current state as well by getNextState() method.

Note that the "copy on write" or "lazy copy" technique has been used in this algorithm.

Please report any bugs to mrowshan at ieee dot org

list-decoder-for-polar-codes-and-pac-codes's People

Contributors

mohammad-rowshan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.