A Tensor Network based Decision Diagram for Representation of Quantum Circuits

Xin Hong, Xiangzhen Zhou, Sanjiang Li, Yuan Feng, Mingsheng Ying · DOI

TL;DR

This paper introduces Tensor Decision Diagrams (TDDs), a novel data structure for representing quantum circuits as tensor networks. TDDs offer a compact, canonical, and efficient way to manage quantum functionalities, addressing the memory limitations of traditional matrix-based approaches and providing a more flexible alternative to existing decision diagram methods.

What Problem Does This Paper Address?

Simulating and verifying quantum computers is becoming increasingly challenging as the number of qubits grows. Traditional methods that represent quantum circuits as large matrices quickly run into memory limitations. While existing decision diagram techniques like QMDDs offer improvements, they can be rigid. Tensor networks provide a flexible framework for representing quantum computations, but their direct application can still be computationally intensive. This paper aims to bridge this gap by proposing a new data structure, TDD, that leverages the power of tensor networks in a decision diagram format, offering a more efficient and scalable solution for quantum circuit representation and manipulation.

Methods

The core contribution is the Tensor Decision Diagram (TDD), a rooted, weighted, and directed acyclic graph. TDDs are built upon the Boole-Shannon expansion for tensors, allowing for a recursive decomposition of quantum functionalities. Key features include:

  • Compact and Canonical Representation: Similar to ROBDDs, TDDs employ reduction and normalization rules to ensure a unique representation for each quantum circuit, minimizing redundancy.
  • Tensor Network Operations: TDDs are designed to efficiently implement fundamental tensor network operations like addition and contraction, crucial for circuit manipulation.
  • Flexibility in Index Ordering: Unlike QMDDs, TDDs allow for flexible ordering of indices, which can lead to significant size reductions in the resulting diagrams, especially for circuits with specific structures.
  • Partition Schemes: The paper proposes two partition schemes to break down large quantum circuits into smaller, manageable parts, whose TDDs are then computed and combined through contraction. This strategy further enhances efficiency.

Datasets

Not discussed in the paper. The paper focuses on theoretical development and experimental evaluation using benchmark circuits from existing literature.

Key Insights and Ideas

  • Tensors as the Foundation: The paper grounds the representation in tensor network theory, recognizing that quantum circuits are a special class of tensors. This perspective unlocks new ways to manipulate and represent them.
  • Boole-Shannon Expansion for Tensors: Adapting the familiar Boole-Shannon expansion from Boolean functions to tensors is a key insight that enables the recursive construction of TDDs.
  • Index Order Matters (A Lot): The flexibility in choosing the order of indices for TDDs is a critical advantage over QMDDs, allowing for potentially exponential reductions in diagram size for certain circuit structures.
  • TDDs as a Unified Framework: TDDs can represent not only quantum gates and circuits but also classical gates, measurements, and classically controlled gates, making them a versatile tool for quantum circuit design automation.

Key Results

  • Efficiency Gains: Experiments show that TDDs, especially with partition schemes, can significantly outperform matrix-based methods (Qiskit, TensorNetwork) for circuits with 15 or more qubits, particularly in terms of memory usage and time.
  • Compactness: TDDs are shown to be as compact as QMDDs, and in some cases, due to flexible index ordering, can achieve substantially smaller representations.
  • Scalability: TDDs demonstrate better scalability for larger quantum circuits compared to matrix-based approaches, which quickly become memory-bound. For example, TDDs can handle circuits with up to 22 qubits, while matrix-based methods struggle beyond 15 qubits.
  • Performance Comparison: While TensorNetwork can be faster for smaller circuits, TDDs excel for larger and more complex ones. The paper also shows TDDs can be competitive with or outperform QMDD, especially after optimization.

Limitations and Future Work

  • Implementation Optimization: The current TDD package is implemented in Python and is noted as being far from optimal. Future work will involve implementing TDD in C++ for better performance.
  • Generalization of Indices: The current TDD formulation assumes indices take values from {0, 1}. Future work aims to remove this restriction, allowing nodes to have varying numbers of successors, making TDDs applicable to a broader range of tensor network tasks.
  • Exploiting Tensor Network Techniques: The authors plan to integrate TDDs with other tensor network techniques, such as tree decomposition, to further enhance efficiency.
  • Partition Scheme Optimization: While partition schemes show promise, finding optimal partition strategies remains a challenging task.
  • Comparison with Other DDs: The paper suggests further exploration of TDDs in comparison to other decision diagram variants for quantum circuit tasks.

Summary updated

BibTeX
@article{hong2020tensor,
  author = {Xin Hong and Xiangzhen Zhou and Sanjiang Li and Yuan Feng and Mingsheng Ying},
  title = {{A Tensor Network based Decision Diagram for Representation of Quantum Circuits}},
  journal = {ACM Trans. Design Autom. Electr. Syst},
  year = {2020},
  doi = {10.1145/3514355},
}
Figure