If I have such a quantum circuit:
quanc = QuantumCircuit(5)
quanc.crz(np.pi,1,0)
quanc.cx(1,[i for i in range(2,5)])
Can I 'shuffle' the quantum circuit, such that the qubits [0,1,2,3,4]
are mapped to [4,2,3,0,1]
? I know in principle I could directly define my circuit in that order, but I'm still wondering if I could first define it like the original code and then 'shuffle' the qubits with those mapping rules? Thanks a lot:)