rustworkx
rustworkx copied to clipboard
`minimal_cycle_basis`
What is the expected enhancement?
Add minimal_cycle_basis, with the same functionality as that of NetworkX.
Will be used in Qiskit QEC's ArcCircuit.
For reference to anyone interested in implementing this the algorithm networkx is implementing is published here: https://link.springer.com/article/10.1007/s00453-007-9064-z
@quantumjim @mtreinish I want to try this, but I want to make it clear first.
- Do we need to add
minimal_cycle_basismodule written in Rust? - Should I add this to
rustworkx-core/src/connectivity/?
- Yes we need to implement an equivalent function in rust.
- Yes, implementing the core algorithm in
rustworkx-core/src/connectivityis ideal, that would mean we could expose the functionality to any rust user. We'll still need to add apyfunctiontosrc/connectivity/mod.rsbut that will just callrustworkx_core::connectivity::minimal_cycle_basis. You can use the existingcycle_basisfunction as a model for how you can implement this.
@gluonhiggs would you like me to assign this issue to you?
@mtreinish yes, sure!