get_coefficients
Method of RealOperatorSum.
get_coefficients() -> List
Returns the coefficients of the RealOperatorSum.
Returns
A vector of real coefficients for each term in the sum.
Example
var op_sum = 2.0 * X(0) + 3.5 * Y(1)
var coeffs = get_coefficients(op_sum) // Returns [2, 3.5]