Skip to content

__len__() for coordinate systems #242

@andrew-d-king

Description

@andrew-d-king

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions