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.
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: