PR #1390 – Parameterize random_psd_operator with Wishart Distribution Option
Merged: Apr 2026
distribution: Literal["uniform", "wishart"] parameter to random_psd_operator with full backward compatibility/sqrt(2)) following Goodman (1963)scale (PSD scale matrix) and num_degrees (degrees of freedom) parameters for full Wishart parameterizationnp.asarray coercion for scale to gracefully handle list/tuple inputscale shape and positive semidefiniteness, and integer/positivity checks for num_degreesUserWarning for rank-deficient Wishart matrices (num_degrees < dim) and ignored Wishart params on uniform pathRaises section, Google-style format, and mkdocs-compatible examplesPR #1391 – Ensure partial_trace Raises ValueError for Invalid Parameters
Merged: Apr 2026
ValueError: input_mat must be a 2D square matrixnp.prod(dim) != n validation to catch mismatched subsystem dimensionssys subsystem indicesdim and sys type support to accept list, tuple, and np.ndarray using np.asarrayRaises section to document all ValueError conditionsIndexError crashes with actionable error messages