pygsti.objects.GateSet.get_num_params¶
-
GateSet.
get_num_params
(gates=True, G0=True, SPAM=True, SP0=True)¶ Return the number of free parameters when vectorizing this gateset according to the optional parameters.
Parameters: - gates (bool or list, optional) –
Whether/which gate matrices should be vectorized (i.e. included as gateset parameters).
- True = all gates
- False = no gates
- list of gate labels = those particular gates.
- G0 (bool, optional) – Whether the first row of gate matrices should be vectorized (i.e. included as gateset parameters).
- SPAM (bool, optional) – Whether the rhoVecs and EVecs should be vectorized (i.e. included as gateset parameters).
- SP0 (bool, optional) – Whether the first element of the state preparation (rho) vectors should be vectorized (i.e. included as gateset parameters).
Returns: the number of gateset parameters.
Return type: int
- gates (bool or list, optional) –