Skip to content

ppvm_pauli_sum::config::fx64hash

fx64hash

ppvm_pauli_sum::config::fx64hash

Pre-built configs using rustc-hash's `FxHasher` and `f64` coefficients.

classByte8source

ppvm_pauli_sum::config::fx64hash::Byte8

Bases: Debug, Clone, Copy, StructuralPartialEq, PartialEq, Eq, PartialOrd, Ord, Hash, Config

Rust struct. `HashMap`-backed [`Config`] with native-word (`[usize; N]`) storage and `FxHasher`.

Signature
pub struct Byte8<const N: usize, C: Coefficient, St: Strategy, W: PauliWordTrait>

The storage element is `usize`, i.e. the target’s native machine word: `u64` on 64-bit targets (identical layout and performance to a hardcoded `[u64; N]`) and `u32` on 32-bit targets such as `wasm32`. Using `usize` rather than `u64` keeps this config available on every target — `bitvec` only implements `BitStore` for `u64` on 64-bit pointer widths, but always implements it for `usize`. (The `Byte8` name refers to the 64-bit word this config packs into on native targets.)

source

classByte8F64source

ppvm_pauli_sum::config::fx64hash::Byte8F64

Rust type alias. [`Byte8`] specialised to `f64` coefficients.

pub type Byte8F64<const N: usize, St> = Byte8<N, f64, St>
source