PennyLaneAI / catalyst

A JIT compiler for hybrid quantum programs in PennyLane
https://docs.pennylane.ai/projects/catalyst
Apache License 2.0
130 stars 29 forks source link

Mark back a qubitunitary gradient test as xfailed #819

Closed paul0403 closed 3 months ago

paul0403 commented 3 months ago

Context: In PR #778, the support for complex matrices under qubitunitary was added.

It was mistakenly belived that an old test, test_adj_qubitunitary in test_gradient.py, was marked xfailed because complex under qubitunitary was not supported, and the PR removed the xfailed.

However, the xfailed was because qubitunitary should not be differentiable at all.

Description of the Change: The test is now marked back to xfailed, and a new test for complex numbers under qubitunitary, with no gradients in the test, is added

Benefits:

Possible Drawbacks:

Related GitHub Issues:

[sc-66151]

github-actions[bot] commented 3 months ago

Hello. You may have forgotten to update the changelog! Please edit doc/changelog.md on your branch with:

github-actions[bot] commented 3 months ago

Hello. You may have forgotten to update the changelog! Please edit doc/changelog.md on your branch with: