Call this to factor numbers utilizing quantum resources.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public bool Factor( int NumberToFactor, out int Factor1, out int Factor2 )
Public Function Factor ( _ NumberToFactor As Integer, _ <OutAttribute> ByRef Factor1 As Integer, _ <OutAttribute> ByRef Factor2 As Integer _ ) As Boolean
public: bool Factor( int NumberToFactor, [OutAttribute] int% Factor1, [OutAttribute] int% Factor2 )
Parameters
- NumberToFactor (Int32)
- The number to factor. Typically referred to as N.
- Factor1 ( Int32 %)
- The first factor. Typically referred to as p.
- Factor2 ( Int32 %)
- The second factor. Typically referred to as q.
Return Value
False if the number could not be factored. In this
case the two output variables will be 0.