picos.expressions.exp_quantentr¶
Implements QuantumEntropy
, NegativeQuantumEntropy
.
Classes
- class picos.expressions.exp_quantentr.NegativeQuantumEntropy(X, Y=None)[source]¶
Bases:
Expression
Negative or quantum relative entropy of an affine expression.
- Definition
Let
be an
-dimensional symmetric or hermitian matrix.
If no additional expression
is given, this is the negative quantum entropy
If an additional affine expression
of same shape as
is given, this is the quantum relative entropy
If an additional scalar valued real affine expression
is given, this is the homogenized negative quantum entropy
Warning
When you pose an upper bound on this expression, then PICOS enforces
through an auxiliary constraint during solution search. When an additional expression
is given, PICOS enforces
as well.
- __init__(X, Y=None)[source]¶
Construct a
NegativeQuantumEntropy
.- Parameters
X (AffineExpression) – The affine expression
.
Y (AffineExpression) – An additional affine expression
. If necessary, PICOS will attempt to reshape or broadcast it to the shape of
.
- property X¶
The expression
.
- class picos.expressions.exp_quantentr.QuantumEntropy(X, Y=None)[source]¶
Bases:
Expression
Quantum or negative quantum relative entropy of an affine expression.
- Definition
Let
be an
-dimensional symmetric or hermitian matrix.
If no additional expression
is given, this is the quantum entropy
If an additional affine expression
of same shape as
is given, this is the negative quantum relative entropy
If an additional scalar valued real affine expression
is given, this is the homogenized quantum entropy
Warning
When you pose a lower bound on this expression, then PICOS enforces
through an auxiliary constraint during solution search. When an additional expression
is given, PICOS enforces
as well.
- __init__(X, Y=None)[source]¶
Construct an
QuantumEntropy
.- Parameters
X (AffineExpression) – The affine expression
.
Y (AffineExpression) – An additional affine expression
. If necessary, PICOS will attempt to reshape or broadcast it to the shape of
.
- property X¶
The expression
.