Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Operations not showing in import of na files #57

Open
ystade opened this issue Jan 29, 2025 · 4 comments
Open

🐛 Operations not showing in import of na files #57

ystade opened this issue Jan 29, 2025 · 4 comments
Assignees
Labels
Area: Import Things relating to the importing of other formats

Comments

@ystade
Copy link
Collaborator

ystade commented Jan 29, 2025

When I import an na-file it displays the movements correctly, however, I do not see the actual operations on the qubits, i.e., RZ, RY, and CZ. The time passes by without any change in the animation until the movements begin. Below I put the first couple of lines of the na-file I used as input.

init at (30, 56), (35, 56), (30, 61), (35, 61), (30, 66), (35, 66), (40, 56), (45, 56), (40, 61), (45, 61), (40, 66), (45, 66), (0, 56), (5, 56), (0, 61), (5, 61), (0, 66), (5, 66), (50, 56), (55, 56), (50, 61), (55, 61), (50, 66), (55, 66), (50, 71), (55, 71), (50, 76), (55, 76), (50, 81), (55, 81), (0, 86), (5, 86), (0, 91), (5, 91), (0, 96), (5, 96), (10, 71), (15, 71), (10, 76), (15, 76), (10, 81), (15, 81), (10, 56), (15, 56), (10, 61), (15, 61), (10, 66), (15, 66), (20, 56), (25, 56), (20, 61), (25, 61), (20, 66), (25, 66), (30, 86), (35, 86), (30, 91), (35, 91), (30, 96), (35, 96), (20, 71), (25, 71), (20, 76), (25, 76), (20, 81), (25, 81), (50, 86), (55, 86), (50, 91), (55, 91), (50, 96), (55, 96), (0, 71), (5, 71), (0, 76), (5, 76), (0, 81), (5, 81), (40, 71), (45, 71), (40, 76), (45, 76), (40, 81), (45, 81), (30, 71), (35, 71), (30, 76), (35, 76), (30, 81), (35, 81), (40, 86), (45, 86), (40, 91), (45, 91), (40, 96), (45, 96);
ry(-0.322329);
ry(0.322329);
ry(-0.322329);
ry(0.322329);
ry(-2.21548);
ry(2.21548);
ry(-0.644698);
ry(0.644698);
ry(-0.785398);
ry(0.785398);
ry(-1.5708);
ry(1.5708);
ry(-0.785398);
ry(0.785398);
ry(-1.5708);
ry(1.5708);
ry(-0.785398);
ry(0.785398);
ry(-1.5708);
ry(1.5708);
ry(-0.785398);
ry(0.785398);
ry(-1.5708);
ry(1.5708);
ry(-1.5708);
ry(1.5708);
ry(-0.785398);
ry(0.785398);
ry(-2.21548);
ry(2.21548);
load (0, 56), (5, 56), (0, 61), (5, 61), (0, 66), (5, 66), (10, 56), (15, 56), (10, 61), (15, 61), (10, 66), (15, 66), (20, 56), (25, 56), (20, 61), (25, 61), (20, 66), (25, 66) to (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66), (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66), (21, 56), (26, 56), (21, 61), (26, 61), (21, 66), (26, 66);
move (21, 56), (26, 56), (21, 61), (26, 61), (21, 66), (26, 66), (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66), (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66) to (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25), (11, 1), (16, 1), (11, 13), (16, 13), (11, 25), (16, 25), (1, 1), (6, 1), (1, 13), (6, 13), (1, 25), (6, 25);
move (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25), (11, 1), (16, 1), (11, 13), (16, 13), (11, 25), (16, 25), (1, 1), (6, 1), (1, 13), (6, 13), (1, 25), (6, 25) to (44, 1), (54, 1), (44, 13), (54, 13), (44, 25), (54, 25), (24, 1), (34, 1), (24, 13), (34, 13), (24, 25), (34, 25), (4, 1), (14, 1), (4, 13), (14, 13), (4, 25), (14, 25);
move (44, 1), (54, 1), (44, 13), (54, 13), (44, 25), (54, 25), (24, 1), (34, 1), (24, 13), (34, 13), (24, 25), (34, 25), (4, 1), (14, 1), (4, 13), (14, 13), (4, 25), (14, 25) to (44, 0), (54, 0), (44, 12), (54, 12), (44, 24), (54, 24), (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24), (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24);
store (44, 0), (54, 0), (44, 12), (54, 12), (44, 24), (54, 24), (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24), (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24) to (43, 0), (53, 0), (43, 12), (53, 12), (43, 24), (53, 24), (23, 0), (33, 0), (23, 12), (33, 12), (23, 24), (33, 24), (3, 0), (13, 0), (3, 12), (13, 12), (3, 24), (13, 24);
load (30, 56), (35, 56), (30, 61), (35, 61), (30, 66), (35, 66), (40, 56), (45, 56), (40, 61), (45, 61), (40, 66), (45, 66), (50, 56), (55, 56), (50, 61), (55, 61), (50, 66), (55, 66) to (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66), (51, 56), (56, 56), (51, 61), (56, 61), (51, 66), (56, 66);
move (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66), (51, 56), (56, 56), (51, 61), (56, 61), (51, 66), (56, 66) to (31, 1), (36, 1), (31, 13), (36, 13), (31, 25), (36, 25), (41, 1), (46, 1), (41, 13), (46, 13), (41, 25), (46, 25), (51, 1), (56, 1), (51, 13), (56, 13), (51, 25), (56, 25);
move (31, 1), (36, 1), (31, 13), (36, 13), (31, 25), (36, 25), (41, 1), (46, 1), (41, 13), (46, 13), (41, 25), (46, 25), (51, 1), (56, 1), (51, 13), (56, 13), (51, 25), (56, 25) to (3, 1), (13, 1), (3, 13), (13, 13), (3, 25), (13, 25), (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25), (43, 1), (53, 1), (43, 13), (53, 13), (43, 25), (53, 25);
cz;
move (3, 1), (13, 1), (3, 13), (13, 13), (3, 25), (13, 25), (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25), (43, 1), (53, 1), (43, 13), (53, 13), (43, 25), (53, 25) to (3, 55), (13, 55), (3, 60), (13, 60), (3, 65), (13, 65), (23, 55), (33, 55), (23, 60), (33, 60), (23, 65), (33, 65), (43, 55), (53, 55), (43, 60), (53, 60), (43, 65), (53, 65);
move (3, 55), (13, 55), (3, 60), (13, 60), (3, 65), (13, 65), (23, 55), (33, 55), (23, 60), (33, 60), (23, 65), (33, 65), (43, 55), (53, 55), (43, 60), (53, 60), (43, 65), (53, 65) to (1, 55), (6, 55), (1, 60), (6, 60), (1, 65), (6, 65), (11, 55), (16, 55), (11, 60), (16, 60), (11, 65), (16, 65), (21, 55), (26, 55), (21, 60), (26, 60), (21, 65), (26, 65);
move (1, 55), (6, 55), (1, 60), (6, 60), (1, 65), (6, 65), (11, 55), (16, 55), (11, 60), (16, 60), (11, 65), (16, 65), (21, 55), (26, 55), (21, 60), (26, 60), (21, 65), (26, 65) to (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66), (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66), (21, 56), (26, 56), (21, 61), (26, 61), (21, 66), (26, 66);
store (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66), (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66), (21, 56), (26, 56), (21, 61), (26, 61), (21, 66), (26, 66) to (0, 56), (5, 56), (0, 61), (5, 61), (0, 66), (5, 66), (10, 56), (15, 56), (10, 61), (15, 61), (10, 66), (15, 66), (20, 56), (25, 56), (20, 61), (25, 61), (20, 66), (25, 66);
load (3, 0), (13, 0), (3, 12), (13, 12), (3, 24), (13, 24), (23, 0), (33, 0), (23, 12), (33, 12), (23, 24), (33, 24), (43, 0), (53, 0), (43, 12), (53, 12), (43, 24), (53, 24) to (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24), (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24), (44, 0), (54, 0), (44, 12), (54, 12), (44, 24), (54, 24);
move (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24), (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24), (44, 0), (54, 0), (44, 12), (54, 12), (44, 24), (54, 24) to (4, 55), (14, 55), (4, 60), (14, 60), (4, 65), (14, 65), (24, 55), (34, 55), (24, 60), (34, 60), (24, 65), (34, 65), (44, 55), (54, 55), (44, 60), (54, 60), (44, 65), (54, 65);
move (4, 55), (14, 55), (4, 60), (14, 60), (4, 65), (14, 65), (24, 55), (34, 55), (24, 60), (34, 60), (24, 65), (34, 65), (44, 55), (54, 55), (44, 60), (54, 60), (44, 65), (54, 65) to (31, 55), (36, 55), (31, 60), (36, 60), (31, 65), (36, 65), (41, 55), (46, 55), (41, 60), (46, 60), (41, 65), (46, 65), (51, 55), (56, 55), (51, 60), (56, 60), (51, 65), (56, 65);
move (31, 55), (36, 55), (31, 60), (36, 60), (31, 65), (36, 65), (41, 55), (46, 55), (41, 60), (46, 60), (41, 65), (46, 65), (51, 55), (56, 55), (51, 60), (56, 60), (51, 65), (56, 65) to (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66), (51, 56), (56, 56), (51, 61), (56, 61), (51, 66), (56, 66);
store (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66), (51, 56), (56, 56), (51, 61), (56, 61), (51, 66), (56, 66) to (30, 56), (35, 56), (30, 61), (35, 61), (30, 66), (35, 66), (40, 56), (45, 56), (40, 61), (45, 61), (40, 66), (45, 66), (50, 56), (55, 56), (50, 61), (55, 61), (50, 66), (55, 66);
load (40, 56), (45, 56), (40, 61), (45, 61), (40, 66), (45, 66) to (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66);
move (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66) to (41, 70), (46, 70), (41, 75), (46, 75), (41, 80), (46, 80);
move (41, 70), (46, 70), (41, 75), (46, 75), (41, 80), (46, 80) to (11, 70), (16, 70), (11, 75), (16, 75), (11, 80), (16, 80);
move (11, 70), (16, 70), (11, 75), (16, 75), (11, 80), (16, 80) to (11, 71), (16, 71), (11, 76), (16, 76), (11, 81), (16, 81);
load (0, 71), (5, 71), (0, 76), (5, 76), (0, 81), (5, 81) to (1, 71), (6, 71), (1, 76), (6, 76), (1, 81), (6, 81);
move (11, 71), (16, 71), (11, 76), (16, 76), (11, 81), (16, 81), (1, 71), (6, 71), (1, 76), (6, 76), (1, 81), (6, 81) to (11, 1), (16, 1), (11, 13), (16, 13), (11, 25), (16, 25), (1, 1), (6, 1), (1, 13), (6, 13), (1, 25), (6, 25);
move (11, 1), (16, 1), (11, 13), (16, 13), (11, 25), (16, 25), (1, 1), (6, 1), (1, 13), (6, 13), (1, 25), (6, 25) to (24, 1), (34, 1), (24, 13), (34, 13), (24, 25), (34, 25), (4, 1), (14, 1), (4, 13), (14, 13), (4, 25), (14, 25);
move (24, 1), (34, 1), (24, 13), (34, 13), (24, 25), (34, 25), (4, 1), (14, 1), (4, 13), (14, 13), (4, 25), (14, 25) to (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24), (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24);
store (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24), (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24) to (23, 0), (33, 0), (23, 12), (33, 12), (23, 24), (33, 24), (3, 0), (13, 0), (3, 12), (13, 12), (3, 24), (13, 24);
load (10, 56), (15, 56), (10, 61), (15, 61), (10, 66), (15, 66) to (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66);
move (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66) to (11, 70), (16, 70), (11, 75), (16, 75), (11, 80), (16, 80);
move (11, 70), (16, 70), (11, 75), (16, 75), (11, 80), (16, 80) to (21, 70), (26, 70), (21, 75), (26, 75), (21, 80), (26, 80);
move (21, 70), (26, 70), (21, 75), (26, 75), (21, 80), (26, 80) to (21, 71), (26, 71), (21, 76), (26, 76), (21, 81), (26, 81);
load (10, 71), (15, 71), (10, 76), (15, 76), (10, 81), (15, 81) to (11, 71), (16, 71), (11, 76), (16, 76), (11, 81), (16, 81);
move (11, 71), (16, 71), (11, 76), (16, 76), (11, 81), (16, 81), (21, 71), (26, 71), (21, 76), (26, 76), (21, 81), (26, 81) to (11, 1), (16, 1), (11, 13), (16, 13), (11, 25), (16, 25), (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25);
move (11, 1), (16, 1), (11, 13), (16, 13), (11, 25), (16, 25), (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25) to (3, 1), (13, 1), (3, 13), (13, 13), (3, 25), (13, 25), (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25);
cz;
move (3, 1), (13, 1), (3, 13), (13, 13), (3, 25), (13, 25), (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25) to (3, 55), (13, 55), (3, 60), (13, 60), (3, 65), (13, 65), (23, 55), (33, 55), (23, 60), (33, 60), (23, 65), (33, 65);
move (3, 55), (13, 55), (3, 60), (13, 60), (3, 65), (13, 65), (23, 55), (33, 55), (23, 60), (33, 60), (23, 65), (33, 65) to (11, 55), (16, 55), (11, 60), (16, 60), (11, 65), (16, 65), (41, 55), (46, 55), (41, 60), (46, 60), (41, 65), (46, 65);
move (11, 55), (16, 55), (11, 60), (16, 60), (11, 65), (16, 65), (41, 55), (46, 55), (41, 60), (46, 60), (41, 65), (46, 65) to (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66);
store (11, 56), (16, 56), (11, 61), (16, 61), (11, 66), (16, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66) to (10, 56), (15, 56), (10, 61), (15, 61), (10, 66), (15, 66), (40, 56), (45, 56), (40, 61), (45, 61), (40, 66), (45, 66);
load (3, 0), (13, 0), (3, 12), (13, 12), (3, 24), (13, 24), (23, 0), (33, 0), (23, 12), (33, 12), (23, 24), (33, 24) to (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24), (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24);
move (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24), (24, 0), (34, 0), (24, 12), (34, 12), (24, 24), (34, 24) to (4, 70), (14, 70), (4, 75), (14, 75), (4, 80), (14, 80), (24, 70), (34, 70), (24, 75), (34, 75), (24, 80), (34, 80);
move (4, 70), (14, 70), (4, 75), (14, 75), (4, 80), (14, 80), (24, 70), (34, 70), (24, 75), (34, 75), (24, 80), (34, 80) to (1, 70), (6, 70), (1, 75), (6, 75), (1, 80), (6, 80), (11, 70), (16, 70), (11, 75), (16, 75), (11, 80), (16, 80);
move (1, 70), (6, 70), (1, 75), (6, 75), (1, 80), (6, 80), (11, 70), (16, 70), (11, 75), (16, 75), (11, 80), (16, 80) to (1, 71), (6, 71), (1, 76), (6, 76), (1, 81), (6, 81), (11, 71), (16, 71), (11, 76), (16, 76), (11, 81), (16, 81);
store (1, 71), (6, 71), (1, 76), (6, 76), (1, 81), (6, 81), (11, 71), (16, 71), (11, 76), (16, 76), (11, 81), (16, 81) to (0, 71), (5, 71), (0, 76), (5, 76), (0, 81), (5, 81), (10, 71), (15, 71), (10, 76), (15, 76), (10, 81), (15, 81);
load (30, 56), (35, 56), (30, 61), (35, 61), (30, 66), (35, 66) to (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66);
move (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66) to (31, 71), (36, 71), (31, 76), (36, 76), (31, 81), (36, 81);
load (20, 71), (25, 71), (20, 76), (25, 76), (20, 81), (25, 81) to (21, 71), (26, 71), (21, 76), (26, 76), (21, 81), (26, 81);
move (31, 71), (36, 71), (31, 76), (36, 76), (31, 81), (36, 81), (21, 71), (26, 71), (21, 76), (26, 76), (21, 81), (26, 81) to (31, 1), (36, 1), (31, 13), (36, 13), (31, 25), (36, 25), (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25);
move (31, 1), (36, 1), (31, 13), (36, 13), (31, 25), (36, 25), (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25) to (44, 1), (54, 1), (44, 13), (54, 13), (44, 25), (54, 25), (4, 1), (14, 1), (4, 13), (14, 13), (4, 25), (14, 25);
move (44, 1), (54, 1), (44, 13), (54, 13), (44, 25), (54, 25), (4, 1), (14, 1), (4, 13), (14, 13), (4, 25), (14, 25) to (44, 0), (54, 0), (44, 12), (54, 12), (44, 24), (54, 24), (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24);
store (44, 0), (54, 0), (44, 12), (54, 12), (44, 24), (54, 24), (4, 0), (14, 0), (4, 12), (14, 12), (4, 24), (14, 24) to (43, 0), (53, 0), (43, 12), (53, 12), (43, 24), (53, 24), (3, 0), (13, 0), (3, 12), (13, 12), (3, 24), (13, 24);
load (0, 56), (5, 56), (0, 61), (5, 61), (0, 66), (5, 66) to (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66);
move (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66) to (1, 55), (6, 55), (1, 60), (6, 60), (1, 65), (6, 65);
move (1, 55), (6, 55), (1, 60), (6, 60), (1, 65), (6, 65) to (51, 55), (56, 55), (51, 60), (56, 60), (51, 65), (56, 65);
move (51, 55), (56, 55), (51, 60), (56, 60), (51, 65), (56, 65) to (51, 56), (56, 56), (51, 61), (56, 61), (51, 66), (56, 66);
load (40, 56), (45, 56), (40, 61), (45, 61), (40, 66), (45, 66) to (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66);
move (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66), (51, 56), (56, 56), (51, 61), (56, 61), (51, 66), (56, 66) to (41, 70), (46, 70), (41, 75), (46, 75), (41, 80), (46, 80), (51, 70), (56, 70), (51, 75), (56, 75), (51, 80), (56, 80);
move (41, 70), (46, 70), (41, 75), (46, 75), (41, 80), (46, 80), (51, 70), (56, 70), (51, 75), (56, 75), (51, 80), (56, 80) to (21, 70), (26, 70), (21, 75), (26, 75), (21, 80), (26, 80), (41, 70), (46, 70), (41, 75), (46, 75), (41, 80), (46, 80);
move (21, 70), (26, 70), (21, 75), (26, 75), (21, 80), (26, 80), (41, 70), (46, 70), (41, 75), (46, 75), (41, 80), (46, 80) to (21, 71), (26, 71), (21, 76), (26, 76), (21, 81), (26, 81), (41, 71), (46, 71), (41, 76), (46, 76), (41, 81), (46, 81);
load (30, 71), (35, 71), (30, 76), (35, 76), (30, 81), (35, 81) to (31, 71), (36, 71), (31, 76), (36, 76), (31, 81), (36, 81);
move (21, 71), (26, 71), (21, 76), (26, 76), (21, 81), (26, 81), (31, 71), (36, 71), (31, 76), (36, 76), (31, 81), (36, 81), (41, 71), (46, 71), (41, 76), (46, 76), (41, 81), (46, 81) to (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25), (31, 1), (36, 1), (31, 13), (36, 13), (31, 25), (36, 25), (41, 1), (46, 1), (41, 13), (46, 13), (41, 25), (46, 25);
move (21, 1), (26, 1), (21, 13), (26, 13), (21, 25), (26, 25), (31, 1), (36, 1), (31, 13), (36, 13), (31, 25), (36, 25), (41, 1), (46, 1), (41, 13), (46, 13), (41, 25), (46, 25) to (3, 1), (13, 1), (3, 13), (13, 13), (3, 25), (13, 25), (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25), (43, 1), (53, 1), (43, 13), (53, 13), (43, 25), (53, 25);
cz;
move (3, 1), (13, 1), (3, 13), (13, 13), (3, 25), (13, 25), (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25), (43, 1), (53, 1), (43, 13), (53, 13), (43, 25), (53, 25) to (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25), (43, 1), (53, 1), (43, 13), (53, 13), (43, 25), (53, 25), (74, 1), (79, 1), (74, 13), (79, 13), (74, 25), (79, 25);
cz;
move (23, 1), (33, 1), (23, 13), (33, 13), (23, 25), (33, 25), (43, 1), (53, 1), (43, 13), (53, 13), (43, 25), (53, 25), (74, 1), (79, 1), (74, 13), (79, 13), (74, 25), (79, 25) to (23, 55), (33, 55), (23, 60), (33, 60), (23, 65), (33, 65), (43, 55), (53, 55), (43, 60), (53, 60), (43, 65), (53, 65), (74, 55), (79, 55), (74, 60), (79, 60), (74, 65), (79, 65);
move (23, 55), (33, 55), (23, 60), (33, 60), (23, 65), (33, 65), (43, 55), (53, 55), (43, 60), (53, 60), (43, 65), (53, 65), (74, 55), (79, 55), (74, 60), (79, 60), (74, 65), (79, 65) to (1, 55), (6, 55), (1, 60), (6, 60), (1, 65), (6, 65), (31, 55), (36, 55), (31, 60), (36, 60), (31, 65), (36, 65), (41, 55), (46, 55), (41, 60), (46, 60), (41, 65), (46, 65);
move (1, 55), (6, 55), (1, 60), (6, 60), (1, 65), (6, 65), (31, 55), (36, 55), (31, 60), (36, 60), (31, 65), (36, 65), (41, 55), (46, 55), (41, 60), (46, 60), (41, 65), (46, 65) to (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66), (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66);
store (1, 56), (6, 56), (1, 61), (6, 61), (1, 66), (6, 66), (31, 56), (36, 56), (31, 61), (36, 61), (31, 66), (36, 66), (41, 56), (46, 56), (41, 61), (46, 61), (41, 66), (46, 66) to (0, 56), (5, 56), (0, 61), (5, 61), (0, 66), (5, 66), (30, 56), (35, 56), (30, 61), (35, 61), (30, 66), (35, 66), (40, 56), (45, 56), (40, 61), (45, 61), (40, 66), (45, 66);
@ystade ystade added the Area: Import Things relating to the importing of other formats label Jan 29, 2025
@FloezeTv
Copy link
Collaborator

Hey,

I think this depends on the global zone names you entered when importing the instructions and the machine used.
The default machine contains the three zones (from bottom to top) _zone0, zone_cz0, and _zone1.
I guess it is not optimal to pre-fill with zone names that don't exist in the Example-machine, though for arbitrary machines, it may not be possible to extract relevant zones.

NAViz currently does not have a notion of a global zone (i.e., a zone that contains all existing atoms); I think that is something that could be added (either by an implicit __global-zone or by allowing * to be used as an identifier to target all atoms).

For the time being, you can use the modified .namachine below, which adds a zone_ry, and a zone_rz that span all existing zones and renames zone_cz0 to zone_cz, so it will work with the default import-settings out-of-the-box.

Modified .namachine
name: "Example"

movement {
	max_speed: 30
}

time {
	load: 1
	store: 1
	ry: 1
	rz: 1
	cz: 1
	unit: "us"
}

distance {
	interaction: 10
	unit: "um"
}

zone zone_cz {
	from: (-10, 34)
	to: (110, 78)
}

zone zone_rz {
	from: (-12, -12)
	to: (112, 120)
}

zone zone_ry {
	from: (-12, -12)
	to: (112, 120)
}

zone _zone0 {
	from: (-10, 80)
	to: (110, 118)
}

zone _zone1 {
	from: (-10, -10)
	to: (110, 32)
}

trap trap0 {
	position: (0, 0)
}

trap trap1 {
	position: (14, 0)
}

trap trap2 {
	position: (28, 0)
}

trap trap3 {
	position: (42, 0)
}

trap trap4 {
	position: (56, 0)
}

trap trap5 {
	position: (70, 0)
}

trap trap6 {
	position: (84, 0)
}

trap trap7 {
	position: (98, 0)
}

trap trap8 {
	position: (0, 14)
}

trap trap9 {
	position: (14, 14)
}

trap trap10 {
	position: (28, 14)
}

trap trap11 {
	position: (42, 14)
}

trap trap12 {
	position: (56, 14)
}

trap trap13 {
	position: (70, 14)
}

trap trap14 {
	position: (84, 14)
}

trap trap15 {
	position: (98, 14)
}

trap trap16 {
	position: (0, 38)
}

trap trap17 {
	position: (14, 38)
}

trap trap18 {
	position: (28, 38)
}

trap trap19 {
	position: (42, 38)
}

trap trap20 {
	position: (56, 38)
}

trap trap21 {
	position: (70, 38)
}

trap trap22 {
	position: (84, 38)
}

trap trap23 {
	position: (98, 38)
}

trap trap24 {
	position: (0, 52)
}

trap trap25 {
	position: (14, 52)
}

trap trap26 {
	position: (28, 52)
}

trap trap27 {
	position: (42, 52)
}

trap trap28 {
	position: (56, 52)
}

trap trap29 {
	position: (70, 52)
}

trap trap30 {
	position: (84, 52)
}

trap trap31 {
	position: (98, 52)
}

trap trap32 {
	position: (0, 66)
}

trap trap33 {
	position: (14, 66)
}

trap trap34 {
	position: (28, 66)
}

trap trap35 {
	position: (42, 66)
}

trap trap36 {
	position: (56, 66)
}

trap trap37 {
	position: (70, 66)
}

trap trap38 {
	position: (84, 66)
}

trap trap39 {
	position: (98, 66)
}

trap trap40 {
	position: (0, 90)
}

trap trap41 {
	position: (14, 90)
}

trap trap42 {
	position: (28, 90)
}

trap trap43 {
	position: (42, 90)
}

trap trap44 {
	position: (56, 90)
}

trap trap45 {
	position: (70, 90)
}

trap trap46 {
	position: (84, 90)
}

trap trap47 {
	position: (98, 90)
}

trap trap48 {
	position: (0, 104)
}

trap trap49 {
	position: (14, 104)
}

trap trap50 {
	position: (28, 104)
}

trap trap51 {
	position: (42, 104)
}

trap trap52 {
	position: (56, 104)
}

trap trap53 {
	position: (70, 104)
}

trap trap54 {
	position: (84, 104)
}

trap trap55 {
	position: (98, 104)
}

@ystade
Copy link
Collaborator Author

ystade commented Jan 29, 2025

Thanks a lot, this already shows the 1-qubit gates. I do not quite understand the two following points:

  1. I only see the zone_cz in the legend on the right, no other zone. However, this also holds true for the standard config.
  2. During the execution of the cz gates all qubits in the entangling zone become orange. Is this intended? I expected only those qubits that have an interaction partner close by to become orange.

@ystade
Copy link
Collaborator Author

ystade commented Jan 29, 2025

Sorry to bother you again: When you import the above file. Around 64µs six qubits move while they are green and no AOD lines show up. Is the error in my program or is that a bug?

@FloezeTv
Copy link
Collaborator

Hey, no problem.

I only see the zone_cz in the legend on the right, no other zone. However, this also holds true for the standard config.

For the bundled example-machine, this is intended as the zones start with an _, which will be hidden from the legend with the bundled styles.
For the fixed machine, this is a bug where the regex mistakenly checks for a match in a substring instead of only checking for the whole string.

During the execution of the cz gates all qubits in the entangling zone become orange. Is this intended? I expected only those qubits that have an interaction partner close by to become orange.

This is intended, as those atoms are considered close by for the Example-machine.
The notion of what counts as close can be set in the machine-config (distance -> interaction).
Setting this to a lower distance will have these atoms not execute a cz-operation.

When you import the above file. Around 64µs six qubits move while they are green and no AOD lines show up. Is the error in my program or is that a bug?

Yes, this is a bug in NAViz (#58, which I found when trying your example).

@FloezeTv FloezeTv self-assigned this Jan 30, 2025
@FloezeTv FloezeTv linked a pull request Jan 30, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Import Things relating to the importing of other formats
Projects
None yet
Development

No branches or pull requests

2 participants