Quantum ToolkitTypesOperatorMethodsis_realOn this pageis_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)) // truevar r2 = X(0).is_real() // truevar r3 = is_real(Y(0)) // false