Skip to content

πŸ› Not supported control gates in Mapper.cppΒ #843

@YouAndre

Description

@YouAndre

System and Environment Information

Ubuntu- 22.04 in docker image
C++ version

Bug Description

We are using a Device supporting CZ as nativ gate while in Mapper.cpp assert(g->getType() == qc::X ) we propse therefore to extend it for cases of CZ and CY else the method crashes and aboards

Steps to Reproduce

We transpile an arbitrary circuit into an architectures native gate set and try to map it on the couplingmap using Qmap.
Since our gate set contains Cz we need to decompose all Cx operations into HCzH ... . In this case Qmap crashes as it does not handle the case of an operation having controll qubits without being the type of quake.X0P

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Anything related to C++ codeenhancementAnything related to improvements of the existing libraryrefactorAnything related to code refactoring

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions