PowCP function

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Math

Package: Microsoft.Quantum.Standard

Returns a number raised to a given power.

function PowCP (a : Microsoft.Quantum.Math.ComplexPolar, power : Microsoft.Quantum.Math.ComplexPolar) : Microsoft.Quantum.Math.ComplexPolar

Input

a : ComplexPolar

The number $a$ that is to be raised.

power : ComplexPolar

The power $b$ to which $a$ should be raised.

Output : ComplexPolar

The power $a^b$