We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 929cfd3 commit 8921dccCopy full SHA for 8921dcc
tests/utilities/matrices/test_identity.py
@@ -44,6 +44,25 @@ def test_apply_2x2_identity_happy(matrix: list[list[float]]):
44
assert result == matrix
45
46
47
+@pytest.mark.parametrize("matrix", [
48
+ [[1., 0.],
49
+ [0., 1.]],
50
+ [[2., 1.],
51
+ [3., 4.]],
52
+ [[2., 3., 5.],
53
+ [1., 4., 6.]]
54
+])
55
+def test_apply_2x2_identity_switched_happy(matrix: list[list[float]]):
56
+ """
57
+ Same as previous test, but with the operands switched
58
59
+ qscode = matrix_dot_product_code(id2x2, matrix)
60
+
61
+ result = qsharp.eval(qscode)
62
63
+ assert result == matrix
64
65
66
@pytest.mark.parametrize("matrix", [
67
[[1.]]
68
])
0 commit comments