Hey all,

I recently started using pennylane and am very excited about the QML framework it offers.

I have been trying to make a simple QML layer for which the inputs are different quantum states. So lets say we are working with two qubits I would like to put as input to the model a 2**n_qubits = **2 = 4 dimensional normalized tensor representing the quantum state.

Is there any way in which it is possible to define the qnode functions like this?

From what I have been able to do it seems necessary to input a tensor which has the same dimension as the number of qubits to represent the quantum state. If I understand correctly this would be the two dimensional tensor where for instance [1,-1] would represent the state |01>.

But then I can find no way to distinguish between the states

|phi> = 1/sqrt(2) (|00> + |01>) and |phi> = 1/sqrt(2) (|00> - |01>) which I would like to be able to do in order to mimick input an oracle function might create.

Thanks in advance!