I have a 3-qubit unitary represented by a circuit with the following dictionary: {'cx': 30, 'h': 22, 'rz': 15, 's': 4, 'sdg': 4}
. I want to use this circuit on IBM machine with a pre-defined coupling map. However, the transpiled circuit with a map i.e.,
transpiled_circuit = transpile(circuit, basis_gates=['rz', 's', 'sdg', 'h', 'cx'], coupling_map=[[0, 1], [1, 2]], optimization_level=3)
is very different from the initial circuit which is incorrect. What am I doing wrong?