Skip to content

Commit

Permalink
address merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
smburdick committed Mar 6, 2024
2 parents 3050fd5 + 20567c9 commit 64eacab
Show file tree
Hide file tree
Showing 94 changed files with 22,045 additions and 1,581 deletions.
Binary file added frontend/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="Create surface codes"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Expand Down
16 changes: 8 additions & 8 deletions frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"short_name": "TQEC Visualizer",
"name": "Create TQEC Visualizer App",
"short_name": "TQEC",
"name": "TQEC Visualizer",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
"type": "image/x-icon",
"sizes": "64x64 32x32 24x24 16x16"
},
{
"src": "logo192.png",
"src": "favicon-32x32.png",
"type": "image/png",
"sizes": "192x192"
"sizes": "32x32"
},
{
"src": "logo512.png",
"src": "favicon-16x16.png",
"type": "image/png",
"sizes": "512x512"
"sizes": "16x16"
}
],
"start_url": ".",
Expand Down
8 changes: 1 addition & 7 deletions frontend/src/components/download/DownloadButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import Template from '../../plaquettes/Template';
import config from './config';
import notification from '../notification';

const assert = require('assert');

export default class DownloadButton extends Button {
constructor(
workspace,
Expand Down Expand Up @@ -44,16 +42,12 @@ export default class DownloadButton extends Button {
.toSorted((a, b) => a.globalX - b.globalX) // leftmost qubits
.toSorted((a, b) => a.globalY - b.globalY)[0]; // topmost qubit
plaquette.qubits.forEach((qubit) => {
assert(
qubit.qubitType === 'data' || qubit.qubitType === 'syndrome',
"Qubit type must be either 'data' or 'syndrome'",
);
marshalledPlaquette.qubits.push({
x:
(originQubit.globalX - qubit.globalX) / this.workspace.gridSize,
y:
(originQubit.globalY - qubit.globalY) / this.workspace.gridSize,
qubitType: qubit.qubitType,
qubitType: qubit.label,
});
});
payload.plaquettes.push(marshalledPlaquette);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/graphics/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default class Grid extends Graphics {
contains = (qubits) => {
const minX = Math.min(...this.visibleUnits().map((unit) => unit.x));
const minY = Math.min(...this.visibleUnits().map((unit) => unit.y));
console.log('Min x, min y', minX, minY);
const unitXs = new Set(this.visibleUnits().map((unit) => [unit.x, unit.x + this.gridSize]).flat());
const unitYs = new Set(this.visibleUnits().map((unit) => [unit.y, unit.y + this.gridSize]).flat());
for (const qubit of qubits) {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/graphics/GridUnit.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default class GridUnit extends Graphics {
}
// Check whether the click was within the bounds of the grid unit
if (relativeX === this.x && relativeY === this.y) {
console.log('Toggling visibility of ', this.name);
this.visible = !this.visible;
}
};
Expand Down
1 change: 0 additions & 1 deletion frontend/src/plaquettes/Circuit.js

This file was deleted.

Loading

0 comments on commit 64eacab

Please sign in to comment.