You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where algorithm is a string containing the algorithm to use:
best is the current logic (and the default)
recursive
trace
approx
and options are the algorithm specific options, i.e. options={'samples': 100} for the approx algorithm, options={'quad': True} for the recursive, options={'powtrace': 'eigenvalues'} for the trace algorithm, etc.
Note: the moment/repeated hafnian will have to remain its own function, since it also takes rpt as an argument.
The text was updated successfully, but these errors were encountered:
Currently, when calling the hafnian Python wrapper, all you specify is whether recursive is
True
orFalse
:We then apply logic to call the best case hafnian algorithm considering the matrix+options the user has provided.
We should modify it to look like this:
where algorithm is a string containing the algorithm to use:
best
is the current logic (and the default)recursive
trace
approx
and options are the algorithm specific options, i.e.
options={'samples': 100}
for the approx algorithm,options={'quad': True}
for the recursive,options={'powtrace': 'eigenvalues'}
for the trace algorithm, etc.Note: the moment/repeated hafnian will have to remain its own function, since it also takes
rpt
as an argument.The text was updated successfully, but these errors were encountered: