I am trying to implement QAOA and there are things I don't understand at all.
The expansion of $H$ into Pauli $Z$ operators can be obtained from the canonical expansion of the cost-function $C$ by substituting for every binary variable $x_i ∈ {0,1}$ the operator $x_i \rightarrow (1−Z_i)/2$. (according to Qiskit tutorial).
But this operator looks like $[[1, 0], [0, 0]]$ which is not unitary.
I am optimizing a complicated QUBO function and the mapped Hamiltonian does not to seem unitary either.
How do I apply $H$ to $|\beta, \gamma\rangle$ to get $\langle\beta, \gamma| H |\beta, \gamma\rangle$?