-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from QuTech-Delft/allow_multiple_qubit_bit_de…
…finitions_and_mid_circuit_measurements Allow multiple qubit/bit (register) definitions and mid-circuit measurements
- Loading branch information
Showing
247 changed files
with
4,503 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
res/v3x/parsing/bit_array_definition/bit_array_of_0_b/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
SUCCESS | ||
Program( | ||
version: < | ||
Version( # input.cq:1:9..10 | ||
items: 3 | ||
) | ||
> | ||
block: < | ||
GlobalBlock( | ||
statements: [ | ||
Variable( # input.cq:3:8..9 | ||
name: < | ||
Identifier( | ||
name: b | ||
) | ||
> | ||
typ: < | ||
Type( # input.cq:3:1..7 | ||
name: < | ||
Keyword( | ||
name: bit | ||
) | ||
> | ||
size: < | ||
IntegerLiteral( | ||
value: 0 | ||
) | ||
> | ||
) | ||
> | ||
annotations: [] | ||
) | ||
] | ||
) | ||
> | ||
) | ||
|
2 changes: 1 addition & 1 deletion
2
...ng/measure_instruction/measure_q/input.cq → ...rray_definition/bit_array_of_0_b/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version 3 | ||
|
||
measure q | ||
bit[0] b |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_0_b/semantic.3.0.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:8..9: found bit array of size <= 0 |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_123abc/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:8..11: extraneous input 'abc' expecting ']' |
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_123abc/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[123abc] |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_17/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:8..9: missing IDENTIFIER at '\n' |
2 changes: 1 addition & 1 deletion
2
...g/measure_instruction/measure_42/input.cq → ...array_definition/bit_array_of_17/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version 3 | ||
|
||
measure 42 | ||
bit[17] |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_17_1/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:9..10: mismatched input '1' expecting IDENTIFIER |
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_17_1/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[17] 1 |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_17_3.14/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:9..13: mismatched input '3.14' expecting IDENTIFIER |
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_17_3.14/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[17] 3.14 |
37 changes: 37 additions & 0 deletions
37
res/v3x/parsing/bit_array_definition/bit_array_of_17_b/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
SUCCESS | ||
Program( | ||
version: < | ||
Version( # input.cq:1:9..10 | ||
items: 3 | ||
) | ||
> | ||
block: < | ||
GlobalBlock( | ||
statements: [ | ||
Variable( # input.cq:3:9..10 | ||
name: < | ||
Identifier( | ||
name: b | ||
) | ||
> | ||
typ: < | ||
Type( # input.cq:3:1..8 | ||
name: < | ||
Keyword( | ||
name: bit | ||
) | ||
> | ||
size: < | ||
IntegerLiteral( | ||
value: 17 | ||
) | ||
> | ||
) | ||
> | ||
annotations: [] | ||
) | ||
] | ||
) | ||
> | ||
) | ||
|
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_17_b/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[17] b |
26 changes: 26 additions & 0 deletions
26
res/v3x/parsing/bit_array_definition/bit_array_of_17_b/semantic.3.0.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
SUCCESS | ||
Program( | ||
api_version: 3.0 | ||
version: < | ||
Version( | ||
items: 3 | ||
) | ||
> | ||
block: < | ||
Block( | ||
statements: [] | ||
) | ||
> | ||
variables: [ | ||
Variable( | ||
name: b | ||
typ: < | ||
BitArray( | ||
size: 17 | ||
) | ||
> | ||
annotations: [] | ||
) | ||
] | ||
) | ||
|
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_17_b0_b1/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:12..14: extraneous input 'b1' expecting {<EOF>, NEW_LINE, ';'} |
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_17_b0_b1/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[17] b0 b1 |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_17_b0_comma_b1/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:11..12: mismatched input ',' expecting {<EOF>, NEW_LINE, ';'} |
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_17_b0_comma_b1/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[17] b0, b1 |
59 changes: 59 additions & 0 deletions
59
res/v3x/parsing/bit_array_definition/bit_array_of_17_b__bit_array_of_17_b/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
SUCCESS | ||
Program( | ||
version: < | ||
Version( # input.cq:1:9..10 | ||
items: 3 | ||
) | ||
> | ||
block: < | ||
GlobalBlock( | ||
statements: [ | ||
Variable( # input.cq:3:9..10 | ||
name: < | ||
Identifier( | ||
name: b | ||
) | ||
> | ||
typ: < | ||
Type( # input.cq:3:1..8 | ||
name: < | ||
Keyword( | ||
name: bit | ||
) | ||
> | ||
size: < | ||
IntegerLiteral( | ||
value: 17 | ||
) | ||
> | ||
) | ||
> | ||
annotations: [] | ||
) | ||
Variable( # input.cq:4:9..10 | ||
name: < | ||
Identifier( | ||
name: b | ||
) | ||
> | ||
typ: < | ||
Type( # input.cq:4:1..8 | ||
name: < | ||
Keyword( | ||
name: bit | ||
) | ||
> | ||
size: < | ||
IntegerLiteral( | ||
value: 17 | ||
) | ||
> | ||
) | ||
> | ||
annotations: [] | ||
) | ||
] | ||
) | ||
> | ||
) | ||
|
4 changes: 4 additions & 0 deletions
4
res/v3x/parsing/bit_array_definition/bit_array_of_17_b__bit_array_of_17_b/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version 3 | ||
|
||
bit[17] b | ||
bit[17] b |
35 changes: 35 additions & 0 deletions
35
...parsing/bit_array_definition/bit_array_of_17_b__bit_array_of_17_b/semantic.3.0.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
SUCCESS | ||
Program( | ||
api_version: 3.0 | ||
version: < | ||
Version( | ||
items: 3 | ||
) | ||
> | ||
block: < | ||
Block( | ||
statements: [] | ||
) | ||
> | ||
variables: [ | ||
Variable( | ||
name: b | ||
typ: < | ||
BitArray( | ||
size: 17 | ||
) | ||
> | ||
annotations: [] | ||
) | ||
Variable( | ||
name: b | ||
typ: < | ||
BitArray( | ||
size: 17 | ||
) | ||
> | ||
annotations: [] | ||
) | ||
] | ||
) | ||
|
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_17_b_at_0/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:10..11: mismatched input '[' expecting {<EOF>, NEW_LINE, ';'} |
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_17_b_at_0/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[17] b[0] |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_17_equal/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:9..10: mismatched input '=' expecting IDENTIFIER |
3 changes: 3 additions & 0 deletions
3
res/v3x/parsing/bit_array_definition/bit_array_of_17_equal/input.cq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version 3 | ||
|
||
bit[17] = |
2 changes: 2 additions & 0 deletions
2
res/v3x/parsing/bit_array_definition/bit_array_of_3.14/ast.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ERROR | ||
Error at input.cq:3:5..9: mismatched input '3.14' expecting INTEGER_LITERAL |
Oops, something went wrong.