-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
68 lines (59 loc) · 2.35 KB
/
index.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<!--
Copyright 2019 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
TODO:
[] Verify whether phase calculations are always correct when state is |1>
[] Provide parameterized rotation gates.
[] Fix picking issue on back side of sphere
[] Document classes and clean up code
[] Follow up on Jay's suggestion regarding y button: |+i> and |-i>
[] Use min version of babylon.js
[] Fix meta element so image will load into GitBook links
[] Improve formatting of Pi rotations by justifying text instead of using spaces
[] Consider providing capability of sliding "outcome probability" bar to manipulate Bloch sphere state
[] Consider labeling the Ry gates |+i> and |-i>
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<!--meta property="twitter:image" content="https://javafxpert.github.io/grok-bloch/images/bloch-sphere.png"-->
<title>v0.12 Grokking the Bloch Sphere</title>
<!--- Link to the last version of BabylonJS --->
<!-- script src="https://cdn.babylonjs.com/babylon.js"></script -->
<script src="js/thirdparty/babylon.js"></script>
<script src="js/thirdparty/babylon.gui.min.js"></script>
<script src="js/thirdparty/math.min.js"></script>
<script src="js/blochsphere.js"></script>
<script src="js/quantumphasedisk.js"></script>
<script src="js/gate.js"></script>
<script src="js/scene.js"></script>
<style>
html,
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
</style>
</head>
<body>
<canvas id="renderCanvas"></canvas>
<script src="js/main.js"></script>
</body>
</html>