Spaces:
Runtime error
Runtime error
Commit ·
f0f7dac
1
Parent(s): e0d7f28
refactor(circuit): increase shots to 100_000 for consistent
Browse files
src/quantum_circuits/circuit_manager.py
CHANGED
|
@@ -87,7 +87,7 @@ class CircuitManager:
|
|
| 87 |
num_variations: Number of noisy variations to generate.
|
| 88 |
"""
|
| 89 |
# Create a device with specified number of wires and 1000 shots.
|
| 90 |
-
dev = qml.device(self.device_name, wires=len(wires), shots=
|
| 91 |
|
| 92 |
@qml.qnode(dev)
|
| 93 |
def get_z_expectation_value(*params: Any) -> list[ExpectationMP]:
|
|
|
|
| 87 |
num_variations: Number of noisy variations to generate.
|
| 88 |
"""
|
| 89 |
# Create a device with specified number of wires and 1000 shots.
|
| 90 |
+
dev = qml.device(self.device_name, wires=len(wires), shots=100_000)
|
| 91 |
|
| 92 |
@qml.qnode(dev)
|
| 93 |
def get_z_expectation_value(*params: Any) -> list[ExpectationMP]:
|
src/scripts/run_error_mitigation.py
CHANGED
|
@@ -18,7 +18,7 @@ def main():
|
|
| 18 |
for i, row in enumerate(df.itertuples()):
|
| 19 |
try:
|
| 20 |
circuit_depth = get_qasm_circuit_depth(df.qasm[i])
|
| 21 |
-
if i > 100 and circuit_depth < 10:
|
| 22 |
res_qwen = process_circuit(i, df, model="qwen2.5:14b")
|
| 23 |
res_phi = process_circuit(i, df, model="phi4")
|
| 24 |
result = {
|
|
|
|
| 18 |
for i, row in enumerate(df.itertuples()):
|
| 19 |
try:
|
| 20 |
circuit_depth = get_qasm_circuit_depth(df.qasm[i])
|
| 21 |
+
if i >= 100 and circuit_depth <= 10:
|
| 22 |
res_qwen = process_circuit(i, df, model="qwen2.5:14b")
|
| 23 |
res_phi = process_circuit(i, df, model="phi4")
|
| 24 |
result = {
|