qiskit/test/python
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
..
circuit Unify identifer handling of `Var` and `Stretch` in `DAGCircuit` (#14000) 2025-04-10 18:38:46 +00:00
compiler Fix tests that assume a trivial layout from compilation (#14192) 2025-04-07 23:09:20 +00:00
converters Remove calibrations APIs and related functionality (#13861) 2025-03-02 16:40:07 +00:00
dagcircuit Unify identifer handling of `Var` and `Stretch` in `DAGCircuit` (#14000) 2025-04-10 18:38:46 +00:00
mock Remove deprecated IBMQ dependent functionality (#11513) 2024-01-11 12:39:27 +00:00
passmanager Fix `PropertySet` re-use in `BasePassManager.run` (#11787) 2024-02-22 17:17:17 +00:00
primitives Make PrimitiveJob serializable (#12963) 2025-04-02 16:44:49 +00:00
providers Remove deprecated `BackendV1` elements, including base class, `providers.models` and `qobj` modules (#13793) 2025-03-05 23:11:24 +00:00
qasm Remove Sabre's manual insertion-order iteration and unnecessary sorts (#9560) 2023-02-15 00:08:30 +00:00
qasm2 Correctly handle non-UnitaryGate gates named "unitary" (#14109) 2025-03-27 13:13:58 +00:00
qasm3 [Stretch] Support stretch and duration expressions for `Delay` instruction. (#13853) 2025-03-06 19:39:42 +00:00
qpy Handle an optional symengine and sympy in qpy (#13917) 2025-03-05 19:00:46 +00:00
quantum_info Remove v1 primitive implementations (#13877) 2025-03-05 17:56:31 +00:00
result Fix result.to_dict() following new 2.0 typing (#14124) 2025-03-31 11:40:05 +00:00
synthesis Improve annotated plugin (#13916) 2025-04-03 12:32:49 +00:00
transpiler Fix tests that assume a trivial layout from compilation (#14192) 2025-04-07 23:09:20 +00:00
utils Remove pulse module files, pulse visualization and final cleanup (#13872) 2025-03-06 03:01:30 +00:00
visualization Update transpiler pipeline to (only) use target internally (#12850) 2025-03-06 16:25:55 +00:00
__init__.py Remove coding: utf-8 per PEP 3120 (#4914) 2020-08-12 08:29:16 -04:00
legacy_cmaps.py Deprecate fake backends based on BackendV1 (#12660) 2024-07-29 10:09:40 +00:00
test_user_config.py Remove consider-using-f-string lint rule and updates (#12423) 2024-06-19 07:05:56 +00:00