Skip to content

Commit

Permalink
chore: fix py stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
kalzoo committed Feb 26, 2024
1 parent 0da027c commit 5f31fbf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion quil-py/quil/program/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,14 @@ class Program:

@final
class BasicBlock:
def as_fixed_schedule(self, program: Program, include_zero_duration_instructions: bool) -> FixedSchedule: ...
def gate_depth(self, minimum_qubit_count: int) -> int: ...
def gate_volume(self) -> int: ...
def label(self) -> Optional[Target]: ...
def instructions(self) -> List[Instruction]: ...
def terminator(self) -> Optional[Instruction]: ...
def as_fixed_schedule(self) -> FixedSchedule: ...
def topological_swap_count(self) -> int: ...


@final
class CalibrationSet:
Expand Down Expand Up @@ -253,7 +257,9 @@ class CalibrationSet:

@final
class FixedScheduleItem:
@property
def instruction_index(self) -> int: ...
@property
def time_span(self) -> FixedTimeSpan: ...


Expand All @@ -280,7 +286,9 @@ class FixedTimeSpan:
"""
Representation of a time span in seconds.
"""
@property
def start(self) -> float: ...
@property
def duration(self) -> float: ...

@final
Expand Down

0 comments on commit 5f31fbf

Please sign in to comment.