Skip to content

Commit cb2b29e

Browse files
Merge pull request #182 from MichaelBroughton/const
Added const to AddState functions.
2 parents e5cabe8 + 3bd55a2 commit cb2b29e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/statespace_avx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ struct StateSpaceAVX : public StateSpace<StateSpaceAVX<For>, For, float> {
229229
}
230230

231231
// Does the equivalent of dest += source elementwise.
232-
void AddState(const State& source, const State& dest) {
232+
void AddState(const State& source, const State& dest) const {
233233

234234
auto f = [](unsigned n, unsigned m, uint64_t i, const State& state1,
235235
const State& state2) {

lib/statespace_basic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct StateSpaceBasic : public StateSpace<StateSpaceBasic<For, FP>, For, FP> {
8989
}
9090

9191
// Does the equivalent of dest += source elementwise.
92-
void AddState(const State& source, const State& dest) {
92+
void AddState(const State& source, const State& dest) const {
9393

9494
auto f = [](unsigned n, unsigned m, uint64_t i, const State& state1,
9595
const State& state2) {

lib/statespace_sse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ struct StateSpaceSSE : public StateSpace<StateSpaceSSE<For>, For, float> {
194194
}
195195

196196
// Does the equivalent of dest += source elementwise.
197-
void AddState(const State& source, const State& dest) {
197+
void AddState(const State& source, const State& dest) const {
198198

199199
auto f = [](unsigned n, unsigned m, uint64_t i, const State& state1,
200200
const State& state2) {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def build_extension(self, ext):
7474
# README file as long_description.
7575
long_description = open('README.md', encoding='utf-8').read()
7676

77-
__version__ = '0.3.0'
77+
__version__ = '0.3.1'
7878

7979
setup(
8080
name='qsimcirq',

0 commit comments

Comments
 (0)