Skip to content

Commit

Permalink
fix: Remove deepcopies in sequence building
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Sep 13, 2024
1 parent aad8d62 commit 53c1826
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/qibolab/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from collections import UserList
from collections.abc import Callable, Iterable
from copy import deepcopy
from typing import Any, Union

from pydantic import TypeAdapter
Expand Down Expand Up @@ -122,7 +121,7 @@ def __lshift__(self, other: Iterable[_Element]) -> "PulseSequence":
Other than that, it is based on :meth:`concatenate`.
"""
copy = deepcopy(self)
copy = self.copy()
copy <<= other
return copy

Expand Down Expand Up @@ -153,7 +152,7 @@ def __or__(self, other: Iterable[_Element]) -> "PulseSequence":
Other than that, it is based on :meth:`concatenate`.
"""
copy = deepcopy(self)
copy = self.copy()
copy |= other
return copy

Expand Down

0 comments on commit 53c1826

Please sign in to comment.