Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new method to return the final state vector array instead of wrapping it #623

Merged
merged 37 commits into from
Oct 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6d12636
allow representing simulation results as 1D array
NoureldinYosri Sep 21, 2023
6705a06
add debug line
NoureldinYosri Sep 22, 2023
736d45b
Debug line
NoureldinYosri Sep 22, 2023
8c84f39
Debug line
NoureldinYosri Sep 22, 2023
6337d59
Debug line
NoureldinYosri Sep 22, 2023
9b9e426
Docker Debug line
NoureldinYosri Sep 22, 2023
2c7c06b
Docker Debug line
NoureldinYosri Sep 22, 2023
585a996
Docker Debug line
NoureldinYosri Sep 22, 2023
16b5ab6
Docker Debug line
NoureldinYosri Sep 22, 2023
575ba8d
Docker Debug line
NoureldinYosri Sep 22, 2023
7cdda0c
Docker Debug line
NoureldinYosri Sep 22, 2023
5794472
Docker Debug line
NoureldinYosri Sep 22, 2023
d16dfa0
Docker Debug line
NoureldinYosri Sep 22, 2023
a1e5a22
revert changes to docker file
NoureldinYosri Sep 22, 2023
0009bc4
change into adding a new functionality
NoureldinYosri Sep 22, 2023
1277509
update return type
NoureldinYosri Sep 25, 2023
8627951
updae
NoureldinYosri Sep 25, 2023
6c17d8d
docs
NoureldinYosri Sep 25, 2023
7de5803
try to fix CI
NoureldinYosri Oct 2, 2023
7bad066
try to fix CI
NoureldinYosri Oct 2, 2023
fab46a2
try to fix CI
NoureldinYosri Oct 2, 2023
b437035
try to fix CI
NoureldinYosri Oct 2, 2023
3b7c878
try to fix CI
NoureldinYosri Oct 2, 2023
30441c8
try to fix CI
NoureldinYosri Oct 2, 2023
fe0090a
try to fix CI
NoureldinYosri Oct 2, 2023
c1dfbd1
try to fix CI
NoureldinYosri Oct 2, 2023
72bf545
try to fix CI
NoureldinYosri Oct 2, 2023
2600dac
try to fix CI
NoureldinYosri Oct 2, 2023
393a7a3
try to fix CI
NoureldinYosri Oct 2, 2023
510e4f0
try to fix CI
NoureldinYosri Oct 2, 2023
1bd151c
fix docker file
NoureldinYosri Oct 2, 2023
e8df883
upgrade bazel version
NoureldinYosri Oct 3, 2023
cb32edb
restore bazel version
NoureldinYosri Oct 3, 2023
6b159a9
Merge branch 'master' into np32
NoureldinYosri Oct 18, 2023
2da0548
rerun CI
NoureldinYosri Oct 18, 2023
343895c
replace upgrade with satisfy
NoureldinYosri Oct 18, 2023
a1025aa
upgrade libc to latests
NoureldinYosri Oct 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs
NoureldinYosri committed Sep 25, 2023
commit 6c17d8d632a271dc21446dd19709588355c870f9
8 changes: 3 additions & 5 deletions qsimcirq/qsim_simulator.py
Original file line number Diff line number Diff line change
@@ -511,10 +511,8 @@ def simulate_into_1d_array(
The returned result is not wrapped in a StateVectorTrialResult but can be used
to create a StateVectorTrialResult.

Retruns:
A parameter resolver.
Final simulation state vector as a 1D array.
Qubit order.
Returns:
Tuple of (param resolver, final state, qubit order)
"""
params = cirq.study.ParamResolver(param_resolver)
return next(self._simulate_impl(program, params, qubit_order, initial_state))
@@ -549,7 +547,7 @@ def simulate_sweep_iter(
is assumed to be the all-zeros state.

Returns:
List of SimulationTrialResults for this run, one for each
Iterator over SimulationTrialResults for this run, one for each
possible parameter resolver.

Raises: