Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

"Exact" cost function #77

Open
VolodyaCO opened this issue Dec 21, 2021 · 0 comments
Open

"Exact" cost function #77

VolodyaCO opened this issue Dec 21, 2021 · 0 comments

Comments

@VolodyaCO
Copy link

If the backend of the QCBMCostFunction is a simulator, one has access to the exact wavefunction of the quantum circuit. In that case, we shouldn't prepare the circuit and measure in order to estimate the cost function, because we wouldn't use all the available information. We should instead use the exact wavefunction that has the probabilities of each bit string.

Another pitfall of preparing the circuit and measuring is that measurements are not reproducible because most of the times there is not an available random seed. This is very problematic when trying to study circuit training based on this cost function, because it is basically a stochastic value, instead of being deterministic, as it should be for simulators.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant