You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HybridSchrodingerFeynmanSimulator seems to fail when there is a SWAP gate present. It gives Assertion failed: (targets.size() == 2), function getDD, file Operations.hpp, line 240. The error disappears as long as you remove the SWAP line.
Expected behavior
The simulation results should be returned
How to Reproduce
qc->x(0);
qc->swap(0, 1);
auto hybridSimulator = std::make_unique<HybridSchrodingerFeynmanSimulator<>>(
std::move(qc), ApproximationInfo{}, 23);
auto result = hybridSimulator->simulate(1024U);
The text was updated successfully, but these errors were encountered:
Thank you for creating the issue! From the top of my head, I would guess that the splitting the circuit between two targets is not supported in the decomposition. I'll have a look.
## Description
This PR improves the error management of the HSF and the Path Simulator
and makes them report a little more user-friendly error messages if
certain constructs of a circuit are not supported by the simulators.
Fixes#251 and #269
## Checklist:
<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->
- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.
mqt.ddsim version
0.1.dev387+g328fdec
OS
macOS Monterey
Python version
No response
C++ compiler
gcc 13.1.6
Additional environment information
No response
Description
The
HybridSchrodingerFeynmanSimulator
seems to fail when there is a SWAP gate present. It givesAssertion failed: (targets.size() == 2), function getDD, file Operations.hpp, line 240.
The error disappears as long as you remove the SWAP line.Expected behavior
The simulation results should be returned
How to Reproduce
The text was updated successfully, but these errors were encountered: