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

Add parsing of "initialize" qobj instruction #88

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

chriseclectic
Copy link
Member

Summary

Adds parsing of "initialize" qobj instruction for Issue #82

Details and comments

This parses a qobj instruction of the form:

{"name": "initialize", "qubits": qs, "params": psi}

where qs is a list of qubits eg [a, b, c], and psi is a (JSON) complex vector corresponding to tensor product order psi[c] \otimes psi[b] \otimes psi[a]

Copy link
Member

@atilag atilag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,
I'd think about having just one method for validation, not quite sure if we need this granularity elsewhere thought

@chriseclectic chriseclectic merged commit c16e3c9 into Qiskit:master Mar 14, 2019
@chriseclectic chriseclectic deleted the initialize-instruction branch March 20, 2019 18:20
dcmckayibm pushed a commit to dcmckayibm/qiskit-aer that referenced this pull request Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants