Skip to content

Commit

Permalink
feat: Add native creator alias
Browse files Browse the repository at this point in the history
Pure syntactic sugar
  • Loading branch information
alecandido committed Sep 3, 2024
1 parent 9ad9c1a commit 408ae3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qibolab/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ class Native(ABC, PulseSequence):
def create_sequence(self, *args, **kwargs) -> PulseSequence:
"""Create a sequence for single-qubit rotation."""

def __call__(self, *args, **kwargs) -> PulseSequence:
"""Create a sequence for single-qubit rotation.
Alias to :meth:`create_sequence`.
"""
return self.create_sequence(*args, **kwargs)


class RxyFactory(Native):
"""Factory for pulse sequences that generate single-qubit rotations around
Expand Down

0 comments on commit 408ae3b

Please sign in to comment.