Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
Hamiltonian term of the form : If both P[i] and P[j] are defined on different qubits, then and this term of our Hamiltonian will behave as we expect. If However they are defined on the same qubit, the two Paulis will compose directly. Recall that the Pali matrixes form a group and are self inverse,