Skip to content

Commit

Permalink
Remove workarounds for qiskit-aer 0.13.0 (qiskit-community#1330)
Browse files Browse the repository at this point in the history
+ Unpin qiskit-aer extra requirement now that 0.13.1 has been released
and we do not have to worry about
Qiskit/qiskit-aer#1985
+ Remove workaround in test for
Qiskit/qiskit-aer#1975

Note that the tests will not pass with 0.13.0 because the workaround was
removed, but the workaround was for an Aer bug so we don't reflect it as
an incomapitibility with qiskit-experiments.
  • Loading branch information
wshanks authored and itoko committed Dec 11, 2023
1 parent da9de19 commit 69e8a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements-extras.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
qiskit-ibm-provider>=0.6.1 # for submitting experiments to backends through the IBM provider
cvxpy>=1.3.2 # for tomography
scikit-learn # for discriminators
qiskit-aer>=0.11.0,<=0.12.2 # temporary version pin until 0.13.1 release
qiskit-aer>=0.11.0
qiskit_dynamics>=0.4.0 # for the PulseBackend
4 changes: 1 addition & 3 deletions test/library/tomography/tomo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def readout_noise_model(num_qubits, seed=None):
p1g0s = 0.15 * rng.random(num_qubits)
p0g1s = 0.3 * rng.random(num_qubits)
amats = np.stack([[1 - p1g0s, p1g0s], [p0g1s, 1 - p0g1s]]).T
# Set `basis_gates` so that reset is included.
# See https://github.com/Qiskit/qiskit-aer/issues/1975
noise_model = NoiseModel(basis_gates=["id", "rz", "sx", "cx", "reset"])
noise_model = NoiseModel()
for i, amat in enumerate(amats):
noise_model.add_readout_error(amat.T, [i])
return noise_model

0 comments on commit 69e8a4a

Please sign in to comment.