-
Notifications
You must be signed in to change notification settings - Fork 148
Fix bit ordering and probabilities of samples in optimization_algorithm.py #97
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
Merged
Merged
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
3945892
fix unittest of grover optimizer
a-matsuo 784cf7c
fix
a-matsuo 546265a
fix lint
a-matsuo 92b87ee
fix bit ordering
a-matsuo 0ad49c1
added unittest
a-matsuo 1c3dcb5
fix bitordering for statevector
a-matsuo 066f54a
fix unittest and timing of updating samples
a-matsuo 8781488
clean up
a-matsuo e9c4f05
fix lint
a-matsuo 393b6b5
fix grover_optimizer as well
a-matsuo a710d74
added test for samples
a-matsuo 70a8bff
fix lint
a-matsuo f8c8272
changed to use assert_array_almost_equal
a-matsuo cef9a89
fix slice
a-matsuo 73861a6
remove change of #96
a-matsuo 62e00fc
remove change of #96 for unittest
a-matsuo f8a65c8
Merge branch 'main' into fix_bit_order
t-imamichi 1374675
Update qiskit_optimization/algorithms/grover_optimizer.py
t-imamichi 7543f8f
Revert "Update qiskit_optimization/algorithms/grover_optimizer.py"
t-imamichi 0aea59b
Merge branch 'main' into fix_bit_order
t-imamichi 586851d
fix grover opt's bit ordering
a-matsuo 06e8d1e
Merge branch 'fix_bit_order' of github.com:a-matsuo/qiskit-optimizati…
a-matsuo ebf9de5
fix linting
a-matsuo 3244a60
clean test
a-matsuo 26274da
add print
a-matsuo 7ac3aeb
skip test temporarily. I will fix it
a-matsuo 94e4a7c
removed temporarily
a-matsuo 0797640
merge from main, fix conflicts
manoelmarques dfc8ef9
add print
a-matsuo c2b3847
add print int_v
a-matsuo e9d5ba9
align print samples
a-matsuo 80a2afb
remove sqrt
a-matsuo 1653b6e
move print eigen_vector
a-matsuo cee591d
move circuit results print
a-matsuo 465fc0a
modified seed
a-matsuo 76307cd
move raw_samples____print
a-matsuo 433ba37
remove print
a-matsuo 168fd22
changed to use basic aer
a-matsuo 1abd994
remove print2
a-matsuo f3f6f5e
fix style
a-matsuo e3fa646
changed to use Aer
a-matsuo ced7129
print count_ops()
a-matsuo 9d0482b
Merge branch 'main' into fix_bit_order
manoelmarques 709a39a
check statevector as well
a-matsuo e6eeb82
Merge branch 'fix_bit_order' of github.com:a-matsuo/qiskit-optimizati…
a-matsuo 3a5682d
remove print
a-matsuo 43a5489
revert seed
a-matsuo dfc9f5c
remove print
a-matsuo 84de846
add print
a-matsuo 4d8af9d
remove print, change seed and increase # of trials
a-matsuo 1d0cab5
fix lint
a-matsuo 1858917
add more tests for grover_opt
a-matsuo 615fa98
more unittests
a-matsuo 30679f2
fix linting
a-matsuo 9db6d03
Merge branch 'main' into fix_bit_order
a-matsuo 3d69a72
clear prints and fix formatting
a-matsuo 8d46427
fix formatting
a-matsuo 89c7814
fix
a-matsuo f87606a
Merge branch 'main' into fix_bit_order
a-matsuo 7599c4c
fix black
a-matsuo 1723f5f
add comments and rename eigenvector
a-matsuo c2e5342
add bit ordering test case for QAOA
a-matsuo 417144c
fix lint
a-matsuo 6dda6ed
Merge branch 'main' into fix_bit_order
t-imamichi 9a64cd4
Merge branch 'main' into fix_bit_order
t-imamichi adc3280
remove some pylint directives and clarify qubit order in from_ising a…
t-imamichi 4518f7e
add reno
t-imamichi ef22a05
Merge branch 'main' into fix_bit_order
t-imamichi 59f7149
Merge branch 'main' into fix_bit_order
t-imamichi 6aa059e
fix mypy
t-imamichi 311d648
fix spell
t-imamichi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,6 +104,7 @@ qp | |
| quadratically | ||
| quadraticconstraint | ||
| quadraticprogram | ||
| quantuminstance | ||
| qubit | ||
| qubits | ||
| qubo | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| fixes: | ||
| - | | ||
| Fix bit ordering in :class`qiskit_optimization.algorithms.minimum_eigen_optimizer.MinimumEigenOptimizer` | ||
| with qasm_simulator. | ||
| - | | ||
| Fix probabilities of solution samples with qasm_simulator. | ||
| See https://github.com/Qiskit/qiskit-optimization/pull/97 for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.