Skip to content

Commit

Permalink
make _get_ctrl_spec a class method
Browse files Browse the repository at this point in the history
  • Loading branch information
anurudhp committed Sep 19, 2024
1 parent 6f7f140 commit 5824406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qualtran/_infra/gate_with_registers.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,9 @@ def __pow__(self, power: int) -> 'GateWithRegisters':
return Power(bloq, abs(power))
raise NotImplementedError(f"{self} does not implemented __pow__ for {power=}.")

@classmethod
def _get_ctrl_spec(
self,
cls,
num_controls: Union[Optional[int], 'CtrlSpec'] = None,
control_values=None,
control_qid_shape: Optional[Tuple[int, ...]] = None,
Expand Down

0 comments on commit 5824406

Please sign in to comment.