Skip to content

Commit ac51738

Browse files
committed
Minor fixes
1 parent 9744cce commit ac51738

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/qasm_import/QASMImport.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ QCQASMListener.prototype.enterQop = function(ctx) {
471471
}
472472
}
473473

474-
console.log(gateName, wires, options);
475474
self.circuit.addGate(gateName, -1, wires, options);
476475
}
477476
}

lib/quantum-circuit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ var QuantumCircuit = function(numQubits) {
15331533
},
15341534

15351535
zz: {
1536-
description: "Parametrix 2-qubit rotation about ZZ",
1536+
description: "Parametric 2-qubit rotation about ZZ",
15371537
matrix: [
15381538
[ "exp(-i * theta / 2)", 0, 0, 0 ],
15391539
[ 0, "exp(i * theta / 2)", 0, 0 ],
@@ -4998,7 +4998,7 @@ QuantumCircuit.prototype.exportToGenerator = function(options) {
49984998
var qasm = this.exportQASM(null, false, null, false, true);
49994999
var usedGates = this.usedGates({ noCustomGates: true, unitariesOnly: true });
50005000
var couplingMap = this.getCouplingMap({ unitariesOnly: true });
5001-
var numSamples = options.numSamples || (this.numQubits < 5 ? ((1 << this.numQubits) + 1) : (this.numQubits * 4));
5001+
var numSamples = options.numSamples || (this.numQubits < 5 ? ((1 << this.numQubits) + 1) : (this.numQubits < 9 ? (this.numQubits * 4) : this.numQubits));
50025002

50035003
var output = {
50045004
source: {

0 commit comments

Comments
 (0)