dev = qml.device("default.qubit", wires=6) @qml.qnode(dev) def circuit(image): qml.AmplitudeEmbedding(image, wires=range(6),normalize=True) return qml.expval(qml.PauliZ(wires=5)) fig, ax = qml.draw_mpl(circuit, expansion_strategy="device")(QX_train) fig.set_size_inches((6, 3.5)) ``` ![image|690x381](upload://t2uoHGtMFblN3sBfrPES8H3Sg2o.png) I want the decomposed circuit(with all gates). Please help with the code
Thank you for your question.
You can learn about decompositions in the Compiling circuits section of the PennyLane docs. Here for instance you can see how BasicEntanglerLayers can be decomposed in different ways.
I hope this can help you.