ppvm_tableau::tableau_index
tableau_index¶
ppvm_tableau::tableau_index
[`TableauIndex`](tableau_index::TableauIndex) — abstraction over the bitstring index type (`usize`, `u128`, `U256`, …).
classTableauIndex¶source
ppvm_tableau::tableau_index::TableauIndex
Rust trait. Bit-string index type used by [`GeneralizedTableau`](crate::data::GeneralizedTableau) to address individual branches of its sparse coefficient vector.
Signature
pub trait TableauIndex: PartialEq + Eq + Hash + Copy + From<u8> + Shl<usize> + BitOrAssign<Self> + BitAnd<Self> + BitXor + PrimIntBlanket-implemented for every primitive (and `bnum`-style) integer type that supports the required bit operations. Pick:
- `usize` for ≤ 64 qubits,
- `u128` for ≤ 128,
- `bnum::types::U256` / `U512` / `U1024` for the wide regime.