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

unnecessary gates in QROM if work_wires = None #6968

Open
1 task done
KetpuntoG opened this issue Feb 14, 2025 · 0 comments
Open
1 task done

unnecessary gates in QROM if work_wires = None #6968

KetpuntoG opened this issue Feb 14, 2025 · 0 comments
Assignees

Comments

@KetpuntoG
Copy link
Contributor

Expected behavior

When using QROM and no work_wires are given, there is no need to use the “clean” version which uses more resources.
I would expect use the "clean = False" version by default

Actual behavior

Currently the template decompose in a non-optimal subroutine

Additional information

No response

Source code

Tracebacks

System information

Platform info:           macOS-15.2-arm64-arm-64bit
Python version:          3.11.10
Numpy version:           1.26.4
Scipy version:           1.13.0
Installed devices:
- default.clifford (PennyLane-0.41.0.dev26)
- default.gaussian (PennyLane-0.41.0.dev26)
- default.mixed (PennyLane-0.41.0.dev26)
- default.qubit (PennyLane-0.41.0.dev26)
- default.qutrit (PennyLane-0.41.0.dev26)
- default.qutrit.mixed (PennyLane-0.41.0.dev26)
- default.tensor (PennyLane-0.41.0.dev26)
- null.qubit (PennyLane-0.41.0.dev26)
- reference.qubit (PennyLane-0.41.0.dev26)
- lightning.kokkos (PennyLane_Lightning_Kokkos-0.40.0.dev14)
- lightning.qubit (PennyLane_Lightning-0.40.0)

Existing GitHub issues

  • I have searched existing GitHub issues to make sure the issue does not already exist.
@KetpuntoG KetpuntoG added the bug 🐛 Something isn't working label Feb 14, 2025
@KetpuntoG KetpuntoG self-assigned this Feb 14, 2025
@KetpuntoG KetpuntoG removed the bug 🐛 Something isn't working label Feb 19, 2025
@KetpuntoG KetpuntoG changed the title [BUG] unnecessary gates in QROM if work_wires = None unnecessary gates in QROM if work_wires = None Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant