Skip to content

Commit 494a273

Browse files
refactor: remove unused QuantumCircuit import and stale variable definition
1 parent 2365cb4 commit 494a273

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

mitigation/pec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616

1717
import numpy as np
18-
from qiskit import QuantumCircuit, ClassicalRegister
18+
from qiskit import ClassicalRegister
1919
from qiskit_aer import AerSimulator
2020

2121
from mitigation.base import Mitigator

mitigation/tests/test_pec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def test_noisy_choi_has_lower_trace(self):
9898

9999
def test_trace_monotonic_with_error(self):
100100
"""Trace should decrease monotonically with error probability."""
101-
choi_ideal = compute_choi_matrix_ideal_1q()
102101
traces = [
103102
np.trace(compute_choi_matrix_noisy_depolarizing(p)) for p in [0.001, 0.005, 0.01, 0.02]
104103
]

0 commit comments

Comments
 (0)