Skip to content

Commit

Permalink
Add Example HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
adamisntdead committed Jan 23, 2017
1 parent a1cda9f commit 87bd7a9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/sample.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<head>
<title>Qics Example</title>
</head>
<body>
<p id="a"></p>
<script src="../dist/qics.min.js"></script>
<script>
var qureg = new qics.Register(3);

qureg.applyGate('H', 1);
qureg.applyGate('CNOT', 1, 3);

var a = document.getElementById('a');
a.innerHTML = qureg.measure();
</script>
</body>

0 comments on commit 87bd7a9

Please sign in to comment.