-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[cirqflow] Hardcoded qubit placement #5194
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
[cirqflow] Hardcoded qubit placement #5194
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
cf5e14f to
051733c
Compare
051733c to
284cbb7
Compare
tanujkhattar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good overall. Left a first round of comments.
| max_plots: int = 20, | ||
| axes: Sequence[plt.Axes] = None, | ||
| tilted=True, | ||
| bad_placement_callback=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Add type annotation (preferably also to the tilted argument above)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done; thanks
|
|
||
|
|
||
| class HardcodedQubitPlacer(QubitPlacer): | ||
| def __init__( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Add docstrings to the class, init and other public methods like place_circuit (if the inherited docstring is not enough).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, sorry
Co-authored-by: Tanuj Khattar <tanujkhattar@google.com>
|
@tanujkhattar ptal |
tanujkhattar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Automerge cancelled: A status check is failing. |
Add a `QubitPlacer` that takes an explicit mapping in its constructor.
Add a `QubitPlacer` that takes an explicit mapping in its constructor.
Add a `QubitPlacer` that takes an explicit mapping in its constructor.
Add a
QubitPlacerthat takes an explicit mapping in its constructor.