I'm a beginner with Qiskit and the Python language at all.
Here is my question:
One of the VQE function arguments is qubit operator (
I saw some examples where the
qubitOp object was produced by some already existing
For example, in the following fragment:
qubitOp, offset = max_cut.get_max_cut_qubitops(w)
qubitOp is an Ising Hamiltonian produced from the connection weights matrix.
But how can I define the
qubitOp entirely by myself, from the very beginning?
(My actual goal is to enrich the Ising Hamiltonian with spin's interactions with the external magnetic field).