NVIDIA/cuda-quantum

[Python] Support returning complex numbers from python kernels

annagrin opened this issue · 1 comments

Required prerequisites

  • Search the issue tracker to check if your feature has already been mentioned or rejected in other issues.

Describe the feature

Support returning complex numbers from python kernel functions, for example:

  @cudaq.kernel
  def kernel(c: complex) -> complex:
      return c

  assert kernel(1 + 2j) == 1 + 2j

Added in #1610