Module sparse

Module sparse 

Source
Expand description

Sparse matrix operations for efficient quantum circuit simulation.

This module provides sparse matrix representations and operations optimized for quantum gates, especially for circuits with limited connectivity.

Structs§

CSRMatrix
Compressed Sparse Row (CSR) matrix format
SparseGates
Sparse quantum gate representations
SparseMatrixBuilder
Sparse matrix builder for incremental construction

Functions§

apply_sparse_gate
Apply sparse gate to state vector at specific qubits
optimize_sparse_gates
Optimize gate sequence using sparsity