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

Equivalent to get_standard_gate_name_mapping for control-flow ops #13468

Open
jakelishman opened this issue Nov 20, 2024 · 0 comments · May be fixed by #13472
Open

Equivalent to get_standard_gate_name_mapping for control-flow ops #13468

jakelishman opened this issue Nov 20, 2024 · 0 comments · May be fixed by #13472
Labels
mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library type: feature request New feature or request
Milestone

Comments

@jakelishman
Copy link
Member

Lazy follow up request -- it would be nice to have an equivalent to get_standard_gate_name_mapping as well to standardize code like this:

name_mapping = {
"if_else": IfElseOp,
"while_loop": WhileLoopOp,
"for_loop": ForLoopOp,
"switch_case": SwitchCaseOp,
}

It came up in Qiskit/qiskit-ibm-runtime#2044 (comment). I will keep it on my list but I can't do it at the moment.

Originally posted by @wshanks in #13057 (comment)

@jakelishman jakelishman added type: feature request New feature or request mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library labels Nov 20, 2024
@jakelishman jakelishman added this to the 2.0.0 milestone Nov 20, 2024
@ElePT ElePT linked a pull request Nov 21, 2024 that will close this issue
@ElePT ElePT linked a pull request Nov 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library type: feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant