ValueError: Error during mapping: Circuit contains gates with more than one control. Please make sure that the input circuit's gates are decomposed to the appropriate gate set! #263
Labels
bug
Something isn't working
mqt.qmap version
mqt.qmap == 2.1.2
OS
ubuntu
Python version
3.8
C++ compiler
No response
Additional environment information
No response
Description
For some benchmark algorithms, the following error happens.
qc_mapped, res = qmap.compile(qc, arch, method="exact")
File "/home/user/anaconda3/lib/python3.8/site-packages/mqt/qmap/compile.py", line 138, in compile
results = map(circ, architecture, config)
ValueError: Error during mapping: Circuit contains gates with more than one control. Please make sure that the input circuit's gates are decomposed to the appropriate gate set!
Expected behavior
No response
How to Reproduce
from mqt import qmap, bench
from qiskit.providers.fake_provider import FakeNairobi
arch = FakeNairobi()
qc = bench.get_benchmark(benchmark_name="qft", circuit_size=7, level="indep")
qc_mapped, res = qmap.compile(qc, arch, method="exact")
The text was updated successfully, but these errors were encountered: