pygsti.tools.matrixtools.prime_factors

Contents

pygsti.tools.matrixtools.prime_factors#

prime_factors(n)#

GCD algorithm to produce prime factors of n

Parameters:

n (int) – The number to factorize.

Returns:

The prime factors of n.

Return type:

list