dwave-networkx icon indicating copy to clipboard operation
dwave-networkx copied to clipboard

__len__() for coordinate systems

Open andrew-d-king opened this issue 6 months ago • 0 comments

Current Problem Sometimes it would be convenient to call len(co) for a coordinate system co to give the number of qubits in a fully-yielded graph of that type, for example when we are passing the coordinates object but not other parameters.

Proposed Solution Writing len() methods for zephyr_coordinates, pegasus_coordinates, and chimera_coordinates

andrew-d-king avatar Aug 07 '24 15:08 andrew-d-king