Skip to content

Commit

Permalink
Fix handling of statevector simulator detection
Browse files Browse the repository at this point in the history
This commit fixes an oversight from an earlier development version that
slipped through later revisions where the statevector simulator backend
detection in the QuantumInstance class was hard coded to False for
BackendV2. This was just meant as a temporary debugging step while
getting the initial commit ready, but was never updated to remove this
until now.
  • Loading branch information
mtreinish committed Jan 27, 2022
1 parent 363e8dd commit 1bca4db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qiskit/utils/quantum_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,9 +981,7 @@ def backend_name(self):
@property
def is_statevector(self):
"""Return True if backend is a statevector-type simulator."""
if self._backend_interface_version <= 1:
return is_statevector_backend(self._backend)
return False
return is_statevector_backend(self._backend)

@property
def is_simulator(self):
Expand Down

0 comments on commit 1bca4db

Please sign in to comment.