Open peendebak opened 6 years ago
Thanks for the suggestion to annotate the message of these errors in future versions.
The reason for your error is that this setup currently does not support your gate set as it currently requires Rz
gates (as most experimental setups use this):
https://projectq.readthedocs.io/en/latest/projectq.setups.html#module-projectq.setups.restrictedgateset
Let me know if you have a special gate set in mind and what it is used for. Future version will support a discrete gate set to get estimates for error correction overheads...
By the way:
projectq.cengines.ManualMapper(lambda ii: ii)
One can probably remove this mapper by adapting the backend.
When a circuit cannot be compiled because gates are not available an error
RecursionError: maximum recursion depth exceeded
is generated. It would be better to generate an error indicating why the circuit cannot be compiled, e.g.CircuitRecursionError: cannot find circuit for [xxx]
.A minimal example: