You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .internal/docs/qmod-reference/language-reference/classical-types.md
+61-61Lines changed: 61 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,6 @@ In Qmod, scalar types represent numeric values, Boolean values, and Pauli base e
21
21
22
22
### Syntax
23
23
24
-
=== "Native"
25
-
26
-
- `int` represents integers
27
-
- `real` represents real numbers (using floating point encoding)
28
-
- `bool` represents the Boolean values `false` and `true`
29
-
- `Pauli` represents the Pauli base elements using the symbols `Pauli::I`, `Pauli::X`, `Pauli::Y`, and `Pauli::Z` (with the integer values 0, 1, 2, 3 respectively)
30
-
31
24
=== "Python"
32
25
33
26
Python Classes are used to represent scalar types
@@ -37,22 +30,29 @@ In Qmod, scalar types represent numeric values, Boolean values, and Pauli base e
37
30
- `CBool` represents the Boolean values `False` and `True`
38
31
- `Pauli` represents the Pauli base elements using the symbols `Pauli.I`, `Pauli.X`, `Pauli.Y`, and `Pauli.Z` (with the integer values 0, 1, 2, 3 respectively)
39
32
33
+
=== "Native"
34
+
35
+
- `int` represents integers
36
+
- `real` represents real numbers (using floating point encoding)
37
+
- `bool` represents the Boolean values `false` and `true`
38
+
- `Pauli` represents the Pauli base elements using the symbols `Pauli::I`, `Pauli::X`, `Pauli::Y`, and `Pauli::Z` (with the integer values 0, 1, 2, 3 respectively)
39
+
40
40
## Arrays
41
41
42
42
Arrays are homogenous collections of scalars or structs with random access.
43
43
44
44
### Syntax
45
45
46
-
=== "Native"
47
-
48
-
Array types have the form - _element-type_ **[** [ _length_expression_ ] **]**
49
-
50
46
=== "Python"
51
47
52
48
Array types are represented with the generic class `CArray`. Arguments are declared with the type hint in the form:
0 commit comments