microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.3.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_division/index.md

15lines · modecode

1**Inputs:**
2
31. A complex number $x = a + bi$.
42. A complex number $y = c + di \neq 0$.
5
6**Goal:** Return the result of the division $\frac{x}{y} = \frac{a + bi}{c + di}$.
7
8<details>
9 <summary><b>Need a hint?</b></summary>
10
11A video explanation of complex division can be found [here](https://www.youtube.com/watch?v=Z8j5RDOibV4).
12
13</details>
14
15> Q# function `DividedByC` from `Microsoft.Quantum.Math` namespace divides two complex numbers. For educational purposes, try to do this task by hand.
16