microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
alex/pythontelem

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/linear_algebra/addition/index.md

7lines · modepreview

**Input:** None.

**Goal:** Return the sum of the following two matrices:

$$\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} + \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix}$$

> In this and the next few tasks, the matrices are represented as Q# `Double[][]` type, two-dimensional arrays of floating-point numbers. Make sure the constants you use in the return array are floating-point rather than integers.