def METHOD_NAME(self):
    """Check that AmplitudeEmbedding cannot be applied if the qubit has already been used."""
    def qfunc():
        qml.CNOT(wires=[0.0, 1.0])
        qml.AmplitudeEmbedding([0.0, 1.0], wires=1)
    transformed_qfunc = merge_amplitude_embedding(qfunc)
    dev = qml.device("default.qubit", wires=2)
    qnode = qml.QNode(transformed_qfunc, dev)
    with pytest.raises(DeviceError, match="applied in the same qubit"):
        qnode()