Cove - A Practical Quantum Computer Programming Framework
Factor Method (NumberToFactor, Factor1, Factor2)
NamespacesCove.LocalSimulationShorsAlgorithmFactor(Int32, Int32%, Int32%)
Call this to factor numbers utilizing quantum resources.
Declaration Syntax
C#Visual BasicVisual 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
bool Factor(
	int NumberToFactor, 
	[OutAttribute] int% Factor1, 
	[OutAttribute] int% Factor2
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.

Assembly: Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: (