hybridq icon indicating copy to clipboard operation
hybridq copied to clipboard

Remove `as_complex_array` in favor of `ComplexArray` object.

Open s-mandra opened this issue 3 years ago • 0 comments

For performance reasons, simulate may use either a single array of complex numbers (when using optimize=evolution-einsum or backend='jax') or a pair or real valued arrays (when using optimize=evolution-hybridq). For this reasons, some functions require to specify as_complex_array to discern from the two cases. Using ComplexArray would remove the necessity to extra flags.

s-mandra avatar Nov 13 '21 00:11 s-mandra