Skip to content

Commit

Permalink
Remove workarounds for qiskit-aer 0.13.0
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 committed Nov 28, 2023
1 parent 2cc444a commit 5581b16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion requirements-extras.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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
# Avoid qiskit-aer 0.13.0 because of https://github.com/Qiskit-Extensions/qiskit-experiments/issues/1292
qiskit-aer>=0.11.0,!=0.13.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 5581b16

Please sign in to comment.