mindquantum.core.gates.ParameterGate
- class mindquantum.core.gates.ParameterGate(pr: ParameterResolver, name, n_qubits, *args, obj_qubits=None, ctrl_qubits=None, **kwargs)[source]
Gate that is parameterized.
- Parameters
pr (ParameterResolver) – the parameter for parameterized gate.
name (str) – the name of this parameterized gate.
n_qubits (int) – the qubit number of this parameterized gate.
args (list) – other arguments for quantum gate.
obj_qubits (Union[int, List[int]]) – the qubit that this gate act on. Default:
None
.ctrl_qubits (Union[int, List[int]]) – the control qubit of this gate. Default:
None
.kwargs (dict) – other arguments for quantum gate.