-
Notifications
You must be signed in to change notification settings - Fork 4
Connecting circuits #11
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
base: master
Are you sure you want to change the base?
Conversation
…ken by actual gates, this way circuits can be tetrised. Also stopped builder from splitting setup into component pieces upon initialisation
slavoutich
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.
Would be nice also to add test that uses_waiting_gates actually matters, but I don't insist. The only serious note is about topo_order -> toposort change, better to leave it as it was.
| the experiment. | ||
|
|
||
| kwargs: Can add t1 and t2 via the kwargs instead of | ||
| passing them with the qubit_dic. |
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.
Kinda weak explanation here (I would not be able to understand). May be better link it to Quantumsim circuit documentation?
| Script to run to finalize gates. Currently adds waiting gates | ||
| as required and sorts gates. | ||
|
|
||
| Args: |
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.
Numpydoc's keyword is Parameters, not Args
| """ | ||
| Function to add waiting gates to system | ||
|
|
||
| Args: |
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.
Parameters
| update_function_dic[rule](self, **kwargs) | ||
|
|
||
| def finalize(self, topo_order=False, t_add=0): | ||
| def finalize(self, toposort=False, tmin=None, tmax=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.
I would not rename topo_order to toposort without extra need: larger chance to get reverse incompatibility in the case of someone called the function as finalize(topo_order=True).
|
Sorry, completely missed the existence of this PR. |
Added option to auto-shrink waiting gates to only include the time taken by actual gates, this way circuits can be tetrised. Also stopped builder from splitting setup into component pieces upon initialisation.
@slavoutich , @xabomon , can one of you check this out?