−Table of Contents
Complex
boolean, read-only.
For an operator O, O.Complex returns a boolean (true or false) stating if the operator contains complex numbers or not.
Example
We define: O=3.4+1.2a†0a†0+(2.5+I)a†1a†2, and O=3.4+1.2a†0a†0+(2.5)a†1a†2, and print for each of these operators if they are complex or not. (true for the first case, false for the second case).
Input
- Example.Quanty
NF=3 NB=0 O = NewOperator(NF,NB,{{3.4},{0,-0,1.2},{1,-2,2.5+I}}) print(O.Complex) O = NewOperator(NF,NB,{{3.4},{0,-0,1.2},{1,-2,2.5}}) print(O.Complex)
Result
true false