Skip to content

Commit

Permalink
chore: union pos in ctrl __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
chensgit169 committed Jan 28, 2024
1 parent dfe0cc5 commit e9be205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quafu/elements/quantum_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ class ControlledGate(MultiQubitGate):
def __init__(
self,
targ_name: str,
ctrls: PosType,
targs: PosType,
ctrls: Union[PosType, List[PosType]],
targs: Union[PosType, List[PosType]],
paras: Optional[Union[ParameterType, List[ParameterType]]] = None,
tar_matrix: MatrixType = None,
):
Expand Down

0 comments on commit e9be205

Please sign in to comment.