Skip to content

Replace ShareableQubit/ShareableClbit parameters with Qubit/Clbit in some functions #15316

@eliarbel

Description

@eliarbel

Based on Jake's comment here #15247 (comment), we should refactor some Rust functions to use
Qubit/Clbit instead of ShareableQubit/ShareableClbit. Doing so will improve efficiency and API simplicity for C and Rust callers.

Candidate functions for this change are:

  • DAGCircuit::from_circuit and DAGCircuit::from_circuit_data - converters::circuit_to_dag would have to map shareable bits to local bits
  • DAGCircuit::compose - DAGCircuit::py_compose would have to map shareable bits to local bits

Metadata

Metadata

Assignees

No one assigned

    Labels

    RustThis PR or issue is related to Rust code in the repositorygood first issueGood for newcomers

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions