Let QuantumInference expectation accept the Hamiltonian class.
Getting some code duplication in VQT and QHBM, due to both needing to accept cirq.PauliSum and Hamiltonian. Instead, the QuantumInferenceexpectation method should accept both. As well, need to move these before allowing QuantumCircuit to be a constructor argument to QuantumInference is possible. Part of #147.
Let QuantumInference expectation accept the Hamiltonian class.
Getting some code duplication in VQT and QHBM, due to both needing to accept
cirq.PauliSum
andHamiltonian
. Instead, theQuantumInference
expectation
method should accept both. As well, need to move these before allowingQuantumCircuit
to be a constructor argument toQuantumInference
is possible. Part of #147.