qiskit/test
Kevin Hartman 8ec4c9cf58
Unify identifer handling of `Var` and `Stretch` in `DAGCircuit` (#14000)
* s

* Rename BitData to ObjectRegistry.

* s

* Update tests for new error string.

This is only really a user-facing error message when
working with DAGCircuit, since QuantumCircuit first
checks if the bits being added to it are duplicates.
And, in the case of DAGCircuit, the previous error
message was already unfriendly:

ValueError: Existing bit ShareableQubit(Owned { register: OwningRegisterInfo { name: "q16", size: 2, subclass: QUBIT }, index: 0 }) cannot be re-added in strict mode.

* Fix comment in commutation checker.

* Fix lint.

* Address review comments.

* Unify identifier handling in DAG.

Tracks stretches the same way we track vars.
Also happens to fix a bug in DAG equality where
order mattered between stretch captures (it should
never have). And, fixes a serialization bug with
stretches.

* Fix tests.

* Improve testing and fix bug.

* Add pickle and deepcopy tests for stretches.

Also fix lint.

* Undo breaking name change.

* Add release note.

* Fix lint.

* Fix Python lint.

* Address review comments.
2025-04-10 18:38:46 +00:00
..
benchmarks Fix: Incorrect initialization of `BackendV2` for `transpiler_level` ASV tests. (#14152) 2025-04-01 18:57:05 +00:00
c Run C tests on all tier 1 platforms (#14030) 2025-03-31 11:24:46 +00:00
python Unify identifer handling of `Var` and `Stretch` in `DAGCircuit` (#14000) 2025-04-10 18:38:46 +00:00
qpy_compat Move `Bit` and `Register` to live in Rust space (#13860) 2025-03-07 21:31:52 +00:00
randomized Remove fake backends based on `BackendV1` and related tools (#13805) 2025-02-28 12:46:24 +00:00
utils Do not raise deprecation warnings for internal uses of dag.duration and dag.unit (#14133) 2025-03-31 15:01:43 +00:00
visual Fixes to various graphs in the docs (#14055) 2025-03-24 11:24:56 +00:00
__init__.py Remove `qiskit.test` (#10998) 2024-01-31 14:11:41 +00:00