Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computing expectation values from frequencies #445

Open
bpcarlos opened this issue Jul 19, 2021 · 1 comment
Open

Computing expectation values from frequencies #445

bpcarlos opened this issue Jul 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@bpcarlos
Copy link
Contributor

bpcarlos commented Jul 19, 2021

I believe it will be useful to have a class in Qibo to compute expectation values of sZ operators directly from output frequencies. This might be useful for simulations with sampling, and implementations in real hardware.

Ideally, I would like to give the output frequencies and the qubits involved in the operator and obtain the expectation value. Say, I want to compute the expectation value of sZ(0)*sZ(2)*sZ(3). Then, I would deliver the output frequencies and select the qubits 0, 2 and 3, and the expectation value should be directly computed by simply reading the probabilities of measuring 0 and 1 on those qubits.

@bpcarlos bpcarlos added the enhancement New feature or request label Jul 19, 2021
@bpcarlos
Copy link
Contributor Author

Actually, this is related to #366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant