Keras Layer - Single QBIT

Dear @Hemant_Gehankari,

Your question ventures away from coding issues and into the wonderful world of QML research :slight_smile:

I can only guess here (without doing the research myself), but one thing I would be aware of is the data input scaling. It’s a great exercise to actually look what the maths of the qlayer is doing: It is a transformation where the inputs enter as sine/cosine functions. Now, these functions are periodic, and you will have to make sure that the data entering the quantum layer lies roughly in an interval of length 2\pi. You can find some more information in the second question of this discussion thread.