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
When running MQT Bench's (https://www.cda.cit.tum.de/mqtbench/) QAOA and Portfolio Optimization with QAOA circuits (target independent, compiler = Qiskit), e.g. portfolioqaoa_indep_qiskit_3.qasm, qaoa_indep_qiskit_3.qasm, using hybrid_qasm_simulator and path_sim_qasm_simulators, error logs are encountered.
When running the circuits using hybrid_qasm_simulator, the following log appears: ValueError: Only StandardOperations are supported for now.
When running the circuits using path_sim_qasm_simulator, the following log appears: ValueError: DD for non-unitary operation not available!
Expected behavior
No response
How to Reproduce
Download some QAOA and Portfolio Optimization with QAOA circuits (target independent, compiler = Qiskit) from MQT Bench's (https://www.cda.cit.tum.de/mqtbench/).
Run the circuits using the hybrid_qasm_simulator and path_sim_qasm_simulator backends. Sample scripts:
Path Simulator script:
Sorry for not getting back to you on this earlier. Since we stumbled upon this today at the qrisp community meeting:
The errors you are seeing here are essentially due to the duplicate measurements in these circuits taken from MQT Bench.
As for the QAOA circuit, this has definitely been fixed in MQT Bench. The resulting circuit there is now:
// Benchmark was created by MQT Bench on 2024-03-18// For more information about MQT Bench, please visit https://www.cda.cit.tum.de/mqtbench/// MQT Bench version: 1.1.0// Qiskit version: 1.0.2OPENQASM 2.0;
include"qelib1.inc";
qreg q[3];
creg meas[3];
h q[0];
h q[1];
rzz(5.094008139994057) q[0],q[1];
h q[2];
rzz(5.094008139994057) q[0],q[2];
rx(-6.860310317223841) q[0];
rzz(5.094008139994057) q[1],q[2];
rx(-6.860310317223841) q[1];
rzz(-5.141522309483603) q[0],q[1];
rx(-6.860310317223841) q[2];
rzz(-5.141522309483603) q[0],q[2];
rx(8.165927224507852) q[0];
rzz(-5.141522309483603) q[1],q[2];
rx(8.165927224507852) q[1];
rx(8.165927224507852) q[2];
barrier q[0],q[1],q[2];
measure q[0] -> meas[0];
measure q[1] -> meas[1];
measure q[2] -> meas[2];
The portfolio QAOA circuit that is downloadable from the website still contains the duplicate measurements. This has been fixed in cda-tum/mqt-bench#364, but we haven't come around to regenerate the MQT Bench circuit database since then. The correct circuit is available via the mqt.bench CLI though. If you have a recent uv version installed, then
Both simulators are failing here because they only support a rather limited gate-set. More precisely, they only support measurements at the very end of the circuit.
Even though this is mostly an issue with the circuits themselves, I guess the error message in both cases could be improved. So I will keep this ticket open for now and see whether I can get a quick fix in over the coming days.
mqt.ddsim version
1.17.3.dev18+gfbfe86a
OS
Linux Mint 21.1
Python version
Python 3.10
C++ compiler
11.3.0
Additional environment information
Content of input file
qaoa_indep_qiskit_3.qasm
:Content of input file
portfolioqaoa_indep_qiskit_3.qasm
:Description
When running MQT Bench's (https://www.cda.cit.tum.de/mqtbench/) QAOA and Portfolio Optimization with QAOA circuits (target independent, compiler = Qiskit), e.g.
portfolioqaoa_indep_qiskit_3.qasm
,qaoa_indep_qiskit_3.qasm
, usinghybrid_qasm_simulator
andpath_sim_qasm_simulators
, error logs are encountered.When running the circuits using
hybrid_qasm_simulator
, the following log appears:ValueError: Only StandardOperations are supported for now.
When running the circuits using
path_sim_qasm_simulator
, the following log appears:ValueError: DD for non-unitary operation not available!
Expected behavior
No response
How to Reproduce
hybrid_qasm_simulator
andpath_sim_qasm_simulator
backends. Sample scripts:Path Simulator script:
Hybrid Simulator script:
The text was updated successfully, but these errors were encountered: