Qiskit, Quantum Computing, Quantum Simulation.
give us some eigenstate assuming |x> is in superposition of basis states or eigenstates of K and this eigenstate would have a corresponding eigenvalue. We would take the average of all the discrete eigenvalues we get through these several measurements and call that as the expectation of K w.r.t x.