VF2Mapping
QuICT.qcda.mapping.VF2Mapping ¶
A mapping algorithm to map a logic circuit onto a physical quantum circuit, as a subgraph isomorphism problem, solved by VF2++. Be careful the isomorphic algorithm may timeout when running on large and random circuits.
Examples:
>>> from QuICT.core import Layout
>>> from QuICT.qcda.mapping import VF2Mapping
>>> layout = Layout.load_file("example/layout/ibmqx2_layout.json")
>>> vf2 = VF2Mapping(layout)
>>> mapping_circuit = vf2.execute(circuit)