From 4d133b6dfc8ce1adda8f15e5c83028195b7c2bda Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Fri, 29 Sep 2023 11:14:31 -0400 Subject: [PATCH] making dataclasses into pydantic.dataclasses. --- src/bloqade/ir/routine/bloqade.py | 2 +- src/bloqade/ir/routine/braket.py | 2 +- src/bloqade/ir/routine/quera.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bloqade/ir/routine/bloqade.py b/src/bloqade/ir/routine/bloqade.py index eccc7afaa..da87a5ec1 100644 --- a/src/bloqade/ir/routine/bloqade.py +++ b/src/bloqade/ir/routine/bloqade.py @@ -4,7 +4,7 @@ from bloqade.task.batch import LocalBatch from beartype import beartype from beartype.typing import Optional, Tuple -from dataclasses import dataclass +from pydantic.dataclasses import dataclass @dataclass(frozen=True, config=__pydantic_dataclass_config__) diff --git a/src/bloqade/ir/routine/braket.py b/src/bloqade/ir/routine/braket.py index c0b5f52ae..271d5c8ff 100644 --- a/src/bloqade/ir/routine/braket.py +++ b/src/bloqade/ir/routine/braket.py @@ -1,5 +1,5 @@ from collections import OrderedDict -from dataclasses import dataclass +from pydantic.dataclasses import dataclass from beartype import beartype from beartype.typing import Optional, Tuple from bloqade.builder.typing import LiteralType diff --git a/src/bloqade/ir/routine/quera.py b/src/bloqade/ir/routine/quera.py index 717b90b33..4ef8c1e71 100644 --- a/src/bloqade/ir/routine/quera.py +++ b/src/bloqade/ir/routine/quera.py @@ -1,5 +1,5 @@ from collections import OrderedDict -from dataclasses import dataclass +from pydantic.dataclasses import dataclass import json from bloqade.builder.typing import LiteralType