get_coefficients
Method of ComplexOperatorSum.
get_coefficients() -> List
Returns the coefficients of the ComplexOperatorSum.
Returns
A vector of complex coefficients for each term in the sum.
Example
var op_sum = (1 + 2i) * X(0) + (3 - 1.5i) * Y(1)
var coeffs = get_coefficients(op_sum) // Returns [(1 + 2i), (3 - 1.5i)]