Skip to content

Commit

Permalink
[Stable] Fix bug in StatevectorSimulator preventing AVX2, GPU, and si…
Browse files Browse the repository at this point in the history
…ngle-precision simulations (#872) (#873)

* Fix bug in StatevectorSimulator preventing AVX2, GPU, and single-precision simulations (#872)

Fixes bug in the StatevectorSimulator that caused it to always run as CPU with double-precision without SIMD/AVX2 support even on systems with AVX2, or when single-precision or the GPU method was specified in the backend options.

* Version to 0.6.1
  • Loading branch information
chriseclectic authored Aug 10, 2020
1 parent cf6b2f1 commit 9e17f97
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = '0.6.0'
release = '0.6.1'

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion qiskit/providers/aer/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
fixes:
- |
Fixes bug in the :class:`qiskit.providers.aer.StatevectorSimulator` that
caused it to always run as CPU with double-precision without SIMD/AVX2
support even on systems with AVX2, or when single-precision or the GPU
method was specified in the backend options.
2 changes: 1 addition & 1 deletion src/controllers/statevector_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void StatevectorController::run_circuit_helper(
const Circuit& circ, const Noise::NoiseModel& noise, const json_t& config,
uint_t shots, uint_t rng_seed, ExperimentData &data) const {
// Initialize state
Statevector::State<> state;
State_t state;

// Validate circuit and throw exception if invalid operations exist
validate_state(state, circ, noise, true);
Expand Down

0 comments on commit 9e17f97

Please sign in to comment.