qtbi_from_state: Compute QTBI from a statevector

View source: R/encoder.R

qtbi_from_stateR Documentation

Compute QTBI from a statevector

Description

Compute QTBI from a statevector

Usage

qtbi_from_state(state, weights = NULL)

Arguments

state

Complex statevector from build_statevector().

weights

Optional named numeric potency weights aligned with qubits. When NULL, marginals are summed with equal weight.

Value

Scalar QTBI score (sum of marginal toxic probabilities).


qtbi documentation built on June 9, 2026, 5:09 p.m.