2

I am currently running a job on a quantum computer. During the transpilation process, I set optimization_level=0 using the command: "tqc = transpile(qc, backend=backend, optimization_level=0)". However, when I try to inspect the qubit mapping via "print("Mapping:", tqc.layout)", I cannot determine which physical qubits my logical qubits have been mapped to. Could you please advise on how I can identify the mapping between logical and physical qubits in this case? I should note that I am applying three Hadamard gates to a single qubit, and my quantum circuit is as follows:

qreg_q = QuantumRegister(1, 'q')
creg_c = ClassicalRegister(1, 'c')
qc = QuantumCircuit(qreg_q, creg_c)
qc.h(qreg_q[0])
qc.h(qreg_q[0])
qc.h(qreg_q[0])
Lham
  • 21
  • 2

0 Answers0