Table of Contents
Fetching ...

Utilizing Circulant Structure to Optimize the Implementations of Linear Layers

Buji Xu, Xiaoming Sun

TL;DR

This work tackles the efficiency of linear layers in symmetric cryptography by exploiting circulant matrix structure. It develops a circulant-focused synthesis method over $GF(2)[x]$ that transforms circulant matrices toward upper-triangular form using ABBA-type decompositions, enabling deeper optimization of quantum circuits. The approach yields concrete improvements, including reducing Whirlwind $M_{0}$ depth to $17$ with $159$ XORs and achieving AES MixColumn depth of $10$ with $107$ CNOTs, approaching state-of-the-art manually optimized results. The method generally increases circuit size but provides meaningful gains in specific cases and demonstrates potential for automating manual optimizations and extending to other circulant-like linear layers.

Abstract

In this paper, we propose a novel approach for optimizing the linear layer used in symmetric cryptography. It is observed that these matrices often have circulant structure. The basic idea of this work is to utilize the property to construct a sequence of transformation matrices, which allows subsequent heuristic algorithms to find more efficient implementations. Our results outperform previous works for various linear layers of block ciphers. For Whirlwind M0 , we obtain two implementations with 159 XOR counts (8% better than Yuan et al. at FSE 2025) and depth 17 (39% better than Shi et al. at AsiaCrypt 2024) respectively. For AES MixColumn, our automated method produces a quantum circuit with depth 10, which nearly matches the manually optimized state-of-the-art result by Zhang et al. at IEEE TC 2024, only with 2 extra CNOTs.

Utilizing Circulant Structure to Optimize the Implementations of Linear Layers

TL;DR

This work tackles the efficiency of linear layers in symmetric cryptography by exploiting circulant matrix structure. It develops a circulant-focused synthesis method over that transforms circulant matrices toward upper-triangular form using ABBA-type decompositions, enabling deeper optimization of quantum circuits. The approach yields concrete improvements, including reducing Whirlwind depth to with XORs and achieving AES MixColumn depth of with CNOTs, approaching state-of-the-art manually optimized results. The method generally increases circuit size but provides meaningful gains in specific cases and demonstrates potential for automating manual optimizations and extending to other circulant-like linear layers.

Abstract

In this paper, we propose a novel approach for optimizing the linear layer used in symmetric cryptography. It is observed that these matrices often have circulant structure. The basic idea of this work is to utilize the property to construct a sequence of transformation matrices, which allows subsequent heuristic algorithms to find more efficient implementations. Our results outperform previous works for various linear layers of block ciphers. For Whirlwind M0 , we obtain two implementations with 159 XOR counts (8% better than Yuan et al. at FSE 2025) and depth 17 (39% better than Shi et al. at AsiaCrypt 2024) respectively. For AES MixColumn, our automated method produces a quantum circuit with depth 10, which nearly matches the manually optimized state-of-the-art result by Zhang et al. at IEEE TC 2024, only with 2 extra CNOTs.

Paper Structure

This paper contains 16 sections, 3 theorems, 22 equations, 6 tables, 3 algorithms.

Key Result

theorem 1

For any field $\mathbb{F}$, every invertible matrix $A$ in $GL(\mathbb{F}, n)$ can be transformed into identity matrix using elementary row operations: A matrix obtained by performing an elementary operation on identity matrix $I_{n}$ is called an elementary matrix.

Theorems & Definitions (7)

  • theorem 1
  • theorem 2
  • definition 1: g-XOR xiangOptimizingImplementationsLinear2020
  • definition 2: s-XOR kranzShorterLinearStraightline2017
  • definition 3: Depth shiFrameworkImprovedHeuristics2023
  • theorem 3
  • proof