Skip to content

Conversation

@obriente
Copy link
Collaborator

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?

Copy link
Collaborator

@slavoutich slavoutich left a 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.
Copy link
Collaborator

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:
Copy link
Collaborator

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:
Copy link
Collaborator

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,
Copy link
Collaborator

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).

@slavoutich
Copy link
Collaborator

Sorry, completely missed the existence of this PR.

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.

2 participants