Entanglement¶
- Entanglement.compute_entanglement_measures(rho_in, opts)¶
- COMPUTE_ENTANGLEMENT_MEASURES
Dispatcher for common entanglement measures. Supports selective evaluation, custom extensions, basic preprocessing (Hermitization and trace normalization), and optional tabular output.
- Inputs:
rho_in : Density matrix (state) or channel Choi matrix. opts : struct with optional fields:
.dims - [d_A, d_B]; if empty, infer square dims (default: []). .measures - cell array of measure names to evaluate
(default: {‘LogNeg’,’RainsBound’,’MaxRainsEntropy’,’TemperedLogNeg’}).
- .custom_measures - struct; each field is a label, each value a
function handle f(rho, dims) -> scalar.
.return_table - true/false; return a table if true (default: false). .normalize_trace - true/false; Hermitize and normalize if true (default: true).
- Output:
- resultstruct with fields per measure (value, elapsed) plus a meta field,
or a table with columns Measure, Value, Elapsed when opts.return_table is true.