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 controlled initialization: derive Initialize from Gate #4526

Closed
Cryoris opened this issue Jun 1, 2020 · 1 comment
Closed

Enable controlled initialization: derive Initialize from Gate #4526

Cryoris opened this issue Jun 1, 2020 · 1 comment
Labels
type: feature request New feature or request

Comments

@Cryoris
Copy link
Contributor

Cryoris commented Jun 1, 2020

What is the expected behavior?

Initialize is currently derived from Instruction as it contains resets. As such we cannot do controlled initialization or use any other Gate method. There should be an option to turn the resets off and obtain a Gate instance to create controlled initializations. Resetting the qubits accordingly is left to the user in that case.

@Cryoris
Copy link
Contributor Author

Cryoris commented Apr 1, 2021

Note: One can use an isometry instruction to do this.

@Cryoris Cryoris closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant