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

Update parameters to accommodate with RZZ constraints #2126

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

yaelbh
Copy link
Collaborator

@yaelbh yaelbh commented Feb 4, 2025

Summary

Solves #2125 through a function that translates from pub to pub.
Only stared - work is still in progress.

Details and comments

  • In fact, in order not to have to bother with the different structures parameter values can have in pubs, at least for now we translate a pair of circuit and parameter values to another pair, and require the parameter values to be just a list of tuples. The order inside each tuple matches the order of appearance of parameters in the circuit, just like one of the options users have to specify parameter values when defining pubs.
  • Note the discussion in Convert pubs to equivalent pubs that are rzz-valid #2125 about an option that's not implemented here, to do it using a transpiler pass.

@yaelbh yaelbh marked this pull request as draft February 4, 2025 16:48
@yaelbh
Copy link
Collaborator Author

yaelbh commented Feb 9, 2025

I left undone for now:

  1. Support for dynamic circuits.
  2. Preserving the global phase.

Other than that it's ready to play with.

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.

1 participant