From e9be2054ede2f8920fda99efd570af0680a8959e Mon Sep 17 00:00:00 2001 From: chensgit169 Date: Sun, 28 Jan 2024 20:43:35 +0800 Subject: [PATCH] chore: union pos in ctrl __init__ --- quafu/elements/quantum_gate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quafu/elements/quantum_gate.py b/quafu/elements/quantum_gate.py index 9c10134..1cb541d 100644 --- a/quafu/elements/quantum_gate.py +++ b/quafu/elements/quantum_gate.py @@ -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, ):