Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

yao-rs

A Rust port of Yao.jl focused on quantum circuit description and tensor network export.

Features

  • Gate enum with named qubit gates (X, Y, Z, H, S, T, SWAP, Rx, Ry, Rz) and custom qudit gates
  • Qudit support with per-site dimensions
  • Circuit validation with controlled gates (qubit-only controls)
  • Tensor network export via omeco for contraction order optimization
  • Diagonal gate optimization in tensor networks (shared legs vs input/output legs)
  • Generic apply for correctness verification