Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ComplexWarnings in various demos #1212

Closed
mudit2812 opened this issue Sep 5, 2024 · 1 comment · Fixed by #1217
Closed

[BUG] ComplexWarnings in various demos #1212

mudit2812 opened this issue Sep 5, 2024 · 1 comment · Fixed by #1217
Assignees

Comments

@mudit2812
Copy link
Contributor

Issue description

Many demos have complex warnings present, with some demos even having multiple complex warnings present.

Expected behavior: (What you expect to happen)
No warnings are expected

Actual behavior: (What actually happens)
The following demos have ComplexWarnings:

System information: (include your operating system, Python version, Sphinx version, etc.)

Source code and tracebacks

The warnings in all demos is from jax. Example warning:

/home/runner/work/qml/qml/venv/lib/python3.10/site-packages/jax/_src/lax/lax.py:2745: ComplexWarning: Casting complex values to real discards the imaginary part
  x_bar = _convert_element_type(x_bar, x.aval.dtype, x.aval.weak_type)

Additional information

@KetpuntoG
Copy link
Contributor

In this demo qrom demo too
Also, note that the vqe_vqd will be published (from the marketing point of view) soon, so it would good to fix this issue if possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants