munich-quantum-toolkit / munich-quantum-toolkit/qmap
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!
- Dominant language
- C++
- Stars
- 146
- Forks
- 41
- Avg merge
- 6h 47m
- Merged PRs (30d)
- 45
Description
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")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.