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

Enable access to the circuit wave-function in XACC #82

Open
DmitryLyakh opened this issue Dec 4, 2020 · 0 comments
Open

Enable access to the circuit wave-function in XACC #82

DmitryLyakh opened this issue Dec 4, 2020 · 0 comments
Assignees

Comments

@DmitryLyakh
Copy link
Member

TN-QVM can compute either the full quantum circuit wave-function or its slice or individual amplitudes. We need to enable access to these quantities from XACC via some API, something like Accelerator.getWavefunction(Mask) -> const Wavefunction &, where Mask specifies which wavefunction slice we want in Thien's notation, like [0,1,0,-1,-1,-1], which will project the first three qubits [0,1,0] and let the last three qubits be free, that is, will return a slice with 2^3 elements. For the full wavefunction, one will need to supply [-1,-1,-1,-1,-1,-1] (default).

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

No branches or pull requests

3 participants