Skip to main content

is_real

Method of Operator.

is_real() -> bool

Returns true if the operator has a real matrix representation.

Returns

true if the operator is real, false otherwise.

Example

var r1 = is_real(X(0))   // true
var r2 = X(0).is_real() // true
var r3 = is_real(Y(0)) // false