power_synthesize() vs. draw_sample()
Are there any fundamental differences between
- calling
power_synthesize(f)
, and - calling
DiagonalOperator(diagonal=f).draw_sample()
?
I think we have some duplicate code here, which could be cleaned up.
Related question: does draw_sample()
work if the operator has complex values on the diagonal?