Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose
CircuitData
interners and registers to the qiskit-circuit
…
…crate (Qiskit#13006) * Initial: Expose `CircuitData` interners and registers to the `qiskit-circuit` crate. - Make the `CircuitData` iter method be an exact-size iterator. * FIx: Expose immutable views of interners, registers and global phase. - Revert the changes making the interners and registers visible to the crate `qiskit-circuit`. - Create methods to expose immutable borrowed views of the interners, registers and global_phase to prevent from mutating the DAGCircuit. - Add `get_qargs` and `get_cargs` to unpack interned qargs ans cargs. - Other tweaks and fixes. * Format: Fix typo in comment Co-authored-by: Eli Arbel <[email protected]> * Refactor: Use naming convention for getters. * Docs: Apply suggestions from code review - Correct incorrect docstrings for `qubits()` and `clbits()` Co-authored-by: Eli Arbel <[email protected]> --------- Co-authored-by: Eli Arbel <[email protected]>
- Loading branch information