pygsti.tools.sdptools.diamond_norm_canon

pygsti.tools.sdptools.diamond_norm_canon#

diamond_norm_canon(arg, basis)#

This more or less implements canonicalization of the nonlinear expression |arg|_{diamond} into CVXPY Constraints and a representation of its epigraph. The canonicalization isn’t quite “complete” in CVXPY’s usual sense, which would require that the epigraph is affine and that no structured variables (like Hermitian matrices) are used.

Parameters:

arg (cp.Expression)

Return type:

Tuple[cp.Expression, List[cp.Constraint]]