Skip to content

Commit 6d8daea

Browse files
committed
Redid tests
1 parent 6d60a32 commit 6d8daea

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

index.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<html>
2-
<script src="https://markknol.github.io/console-log-viewer/console-log-viewer.js"></script>
32
<head>
43
<link rel="shortcut icon" href="images/favicon.ico">
54
<link rel="stylesheet" href="css/base.css">

js/main.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const displayAmplitudes = (nqubits, amplitudes) => {
3131
}
3232
const probability = (prob * 100).toFixed(4) + '%';
3333
row.innerHTML = `
34-
<td style="text-align: right">${amplitudes}</td>
34+
<td style="text-align: right">${amplitude}</td>
3535
<td>|${state}></td>
3636
<td style="text-indent: 20px">${probability}</td>
3737
`;
@@ -44,7 +44,6 @@ window.onload = () => {
4444
const canvas = document.getElementById('canvas');
4545
const app = new Application(canvas, 2);
4646
const editor = app.editor;
47-
console.log('Test')
4847
const hideBtn = document.querySelector('#hide-impossible');
4948
hideBtn.onclick = evt => {
5049
evt.preventDefault();
@@ -65,7 +64,6 @@ window.onload = () => {
6564

6665
document.querySelector('#evaluate').onclick = evt => {
6766
evt.preventDefault();
68-
console.log("Test")
6967
app.circuit.gates.sort((a, b) => a.time - b.time);
7068
const size = Math.pow(2, app.circuit.nqubits);
7169
const amplitudes = new numeric.T(numeric.rep([size], 0), numeric.rep([size], 0));

0 commit comments

Comments
 (0)