Skip to content

Commit a606bad

Browse files
Merge pull request #9 from DeDuckProject/fix-build-errors
Fix TypeScript build errors for GitHub Pages deployment
2 parents e995205 + 76ac9cd commit a606bad

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/engine/averageSimulationEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class AverageSimulationEngine implements ISimulationEngine {
7171
return;
7272
}
7373

74-
const { controlPairs, targetPairs, hasUnpairedPair } = preparePairsForCNOT(this.state.pairs);
74+
const { controlPairs, targetPairs } = preparePairsForCNOT(this.state.pairs);
7575

7676
this.state.pendingPairs = {
7777
controlPairs,

src/engine/monteCarloSimulationEngine.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ export class MonteCarloSimulationEngine implements ISimulationEngine {
199199
// Process each joint state (4-qubit system after bilateral CNOT)
200200
for (let i = 0; i < jointStates.length; i++) {
201201
const controlPair = controlPairs[i];
202-
const targetPair = targetPairs[i];
203202
const jointState = jointStates[i];
204203

205204
// Measure Alice's target qubit (qubit 2)

src/engine_real_calculations/types/complex.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ export class ComplexNum {
7171
toString(): string {
7272
return `${this.re} + ${this.im}i`;
7373
}
74-
}
74+
}
75+
76+
// Add Complex type alias so imports of Complex resolve
77+
export type Complex = ComplexNum;

tsconfig.app.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"compilerOptions": {
3+
"composite": true,
4+
"declaration": true,
5+
"emitDeclarationOnly": true,
36
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
47
"target": "ES2020",
58
"useDefineForClassFields": true,
@@ -12,7 +15,6 @@
1215
"allowImportingTsExtensions": true,
1316
"isolatedModules": true,
1417
"moduleDetection": "force",
15-
"noEmit": true,
1618
"jsx": "react-jsx",
1719

1820
/* Linting */

0 commit comments

Comments
 (0)