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

Rename make_gate and make input more friendly #83

Merged
merged 3 commits into from
May 24, 2021

Conversation

fevangelista
Copy link
Member

@fevangelista fevangelista commented May 24, 2021

This PR renames qforte.make_gate() -> qforte.gate() and allows gate to handle the following cases:

  • gate(type, control): only for single qubit gates

  • gate(type, control, target): only for two-qubit gates that require no parameters

  • gate(type, control, parameter): only for single qubit gates

  • gate(type, control, target,parameter): for any type of gate (there is an extra layer of checks at the C++ side)

  • All tests pass.

@fevangelista fevangelista mentioned this pull request May 24, 2021
23 tasks
Copy link
Contributor

@nstair nstair left a comment

Choose a reason for hiding this comment

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

This looks good to me.

@nstair nstair merged commit cdaa753 into evangelistalab:master May 24, 2021
@fevangelista fevangelista deleted the fix_make_gate branch May 24, 2021 21:58
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.

None yet

2 participants