Skip to content

Commit 5ba42c1

Browse files
authored
Split up datatype definition modules (#1835)
Long overdue. - prior releases included the `qualtran.dtype.XXX` aliases for QCDTypes (the data type classes and objects used in your quantum programs) - This PR moves the source of truth to private submodules in this package and makes the `qualtran._infra.dtype` imports into aliases - Most people are probably using the `qualtran.XXX` re-exports anyways, which remain unchanged. This is just moving code. The only "change" is moving the assert_to_bits test helper is now in the public API.
1 parent 0335aa8 commit 5ba42c1

29 files changed

+3002
-1873
lines changed

qualtran/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
QVarT,
5454
)
5555

56-
from ._infra.data_types import (
56+
from .dtype import (
5757
QCDType,
5858
CDType,
5959
QDType,

0 commit comments

Comments
 (0)