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

Specialize gates on signature #34

Open
jlapeyre opened this issue Jan 16, 2024 · 0 comments
Open

Specialize gates on signature #34

jlapeyre opened this issue Jan 16, 2024 · 0 comments

Comments

@jlapeyre
Copy link
Collaborator

There is only one structure in the ASG for defining gates

pub struct GateDeclaration {
name: SymbolIdResult,
params: Option<Vec<SymbolIdResult>>,
qubits: Vec<SymbolIdResult>,
block: Block,
}

and one for calling gates

pub struct GateCall {
name: SymbolIdResult,
params: Option<Vec<TExpr>>,
qubits: Vec<TExpr>,
modifier: Option<GateModifier>,
}

Especially for the latter, specializing to the number of qubits and parameters is likely to improve performance and memory efficiency.

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

No branches or pull requests

1 participant