-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathscript.js
More file actions
29 lines (24 loc) · 926 Bytes
/
script.js
File metadata and controls
29 lines (24 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
if (typeof qviz != 'undefined') {
document.getElementById('message').remove();
/* These examples shows how to draw circuits into containers. */
const entangleDiv = document.getElementById('entangle');
if (entangleDiv != null) {
qviz.draw(entangle, entangleDiv, qviz.STYLES['Default']);
}
const sampleDiv = document.getElementById('sample');
if (sampleDiv != null) {
qviz.draw(sample, sampleDiv, qviz.STYLES['Default']);
}
const teleportDiv = document.getElementById('teleport');
if (teleportDiv != null) {
qviz.draw(teleport, teleportDiv, qviz.STYLES['Default']);
}
const groverDiv = document.getElementById('grover');
if (groverDiv != null) {
qviz.draw(grover, groverDiv, qviz.STYLES['Default']);
}
} else {
document.getElementById('group').remove();
}