-
Notifications
You must be signed in to change notification settings - Fork 47
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
Timeout on GPGraph
construction in GreedyPauliSimp
#1706
Conversation
unneeded
tket/test/src/test_GreedyPauli.cpp
Outdated
.apply(d)); | ||
REQUIRE(Transforms::greedy_pauli_optimisation( | ||
0.7, 0.3, 500, 500, 0, true, 10, 10) | ||
0.7, 0.3, 500, 500, 0, true, 10000, 10) |
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 don't think we should make the tests take much longer. I suggest removing the test with the long timeout (or annotating it with [.long]
so that it doesn't run by default.
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! I've changed the loop size to make the circuit a 1/5 of the size
/** Construct an GPGraph from the circuit size */ | ||
GPGraph(qubit_vector_t qubits, bit_vector_t bits); | ||
|
||
GPGraph get_graph( |
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.
Can you document what this function does?
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.
Ah, that method shouldn't even be there & is a leftover from an alternative way I considered doing this. I've removed it!
Co-authored-by: Alec Edgington <[email protected]>
…m/CQCL/tket into add-timeout-to-graph-construction
GPGraph
construction andGPGraph::get_sequence
can run significantly longer than the given timeout. This PR updatesgreedy_pauli_graph_synthesis_flag
to check timeout during the execution of these methods and to finish early if the timeout is met.Related issues
Please mention any github issues addressed by this PR.
Checklist