Control of a quantum state

Hi @sassan_moradi,

As I think you’ve already noticed, it’s not possible to mix continuous and discrete variables (as noted here). The issue in the circuit you’ve defined is qml.X, which isn’t compatible with the other qubit operations.

There’s a demo for creating a Variational Classifier, which perhaps could help you in creating a circuit. You also have the full list of operations which you can use; just make sure to stick with either continuous or discrete variables.

Let us know if you encounter any other issues, and we’ll do our best to help you out!