Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Implement bridge and native backing for math functions Q# depends on #501

@kuzminrobin

Description

@kuzminrobin

Implement the following math functions

function ArcCos (x : Double) : Double   arccos__body
function ArcSin (y : Double) : Double   arcsin__body
function ArcTan (d : Double) : Double   arctan__body
function ArcTan2 (y : Double, x : Double) : 
                        Double          arctan2__body
function Cos (theta : Double) : Double  cos__body
function Cosh (d : Double) : Double     cosh__body
function Sin (d : Double) : Double      sin__body
function Sinh (d : Double) : Double     sinh__body
function Tan (d : Double) : Double      tan__body
function Tanh (d : Double) : Double     tanh__body
function Ceiling (value : Double) : Int ceiling__body
function Floor (value : Double) : Int   floor__body
function DivRemL(dividend : BigInt, divisor : BigInt) : 
                    (BigInt, BigInt)    divreml__body
function IEEERemainder (x : Double, y : Double) : Double    
                                        ieeeremainder_body
function Log (input : Double) : Double  log__body
function Sqrt (d : Double) : Double     sqrt__body

and other functions in the following requested order:

__quantum__qis__sqrt__body
__quantum__qis__ceiling__body
__quantum__qis__log__body
__quantum__qis__powd__body
__quantum__qis__arctan2__body
__quantum__qis__mini__body
__quantum__qis__absi__body
__quantum__qis__absd__body

__quantum__rt__int_power
__quantum__rt__pauli_to_string

__quantum__qis__drawrandomint__body
__quantum__qis__message__body

Refer the internal work item 25149 for more details.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions