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

Implementation ZNE + Fix pyquil issues + Qiskit deprecations #309

Merged
merged 134 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
ad61dda
Fixing pyquil 4. breaking changes - QCSClientConfiguration - Engageme…
KilianPoirier Nov 20, 2023
3210394
Fixing pyquil 4. breaking changes - get_qubits() deprecation and list…
KilianPoirier Nov 20, 2023
4c11496
get_qubits() replaced by get_qubit_indices()
KilianPoirier Nov 20, 2023
6148c25
Tests to fix pyquil deprecations
KilianPoirier Nov 26, 2023
961a773
More tests for pyquil update
KilianPoirier Nov 27, 2023
8933777
Update gitignore
KilianPoirier Dec 6, 2023
e17622d
Changed deprecated expression into result.get_register_map()
KilianPoirier Dec 13, 2023
4781e98
first commit
mar-ven Dec 23, 2023
a8ac5f9
added ZNEWrapper
mar-ven Dec 23, 2023
584f790
* ErrorMitigationProperties class now controls
Dec 24, 2023
7452dee
untitled.ipnb deleted
Dec 24, 2023
7eb3dac
ZNEWrapper works, executor uses default observable, notebook compares…
mar-ven Dec 27, 2023
8e32ffd
changes over the wrapper and a possible solution for the espected value
AdrianoLusso Dec 31, 2023
7e5679f
working on support for IBM Quantum devices, still not finished
mar-ven Jan 3, 2024
881a621
updated results
mar-ven Jan 4, 2024
fcdf04e
updated results
mar-ven Jan 4, 2024
ddf4668
Remove debug files
KilianPoirier Jan 8, 2024
1cd1e42
Replace QPU by QVM in circuit routing tests
KilianPoirier Jan 8, 2024
c173f9f
changes on the notebook test
AdrianoLusso Jan 9, 2024
c802e8b
added marco's notebook
mar-ven Jan 10, 2024
6a345b1
added results
mar-ven Jan 10, 2024
a1f674f
changes
AdrianoLusso Jan 10, 2024
a1e3b02
Merge branch 'dev' of https://github.com/victor-onofre/openqaoa into dev
AdrianoLusso Jan 10, 2024
f1ac707
changes
AdrianoLusso Jan 10, 2024
9271126
new pictures of the combinatorial processing added
AdrianoLusso Jan 16, 2024
3d3a837
ordered images, fixed bugs
mar-ven Jan 17, 2024
74e58dd
fixed bugs and added results
mar-ven Jan 17, 2024
12be369
fixed bugs and added other results
mar-ven Jan 18, 2024
2052ace
update of my results over experiments of Knapsack instances with 5 el…
AdrianoLusso Jan 22, 2024
a5d498d
update of my results over experiments of Knapsack instances with 5 el…
AdrianoLusso Jan 22, 2024
f475ff4
update of my results over experiments of Knapsack instances with 5 el…
AdrianoLusso Jan 22, 2024
8affffe
For_Marco folder created
AdrianoLusso Jan 22, 2024
93c7bb4
added other results
mar-ven Jan 24, 2024
20a50af
Merge branch 'dev' of github.com:victor-onofre/openqaoa into dev
mar-ven Jan 24, 2024
506d4b7
Adriano results of 19/1/2024 week
AdrianoLusso Jan 25, 2024
925400d
Adriano results of 19/1/2024 week
AdrianoLusso Jan 25, 2024
e1d0d35
some modifications over the Code, and results of experiments
AdrianoLusso Feb 3, 2024
8355f5e
some modifications over the Code, and results of experiments
AdrianoLusso Feb 3, 2024
4db7002
added results and fixes
mar-ven Feb 5, 2024
51d48bf
Merge branch 'dev' of github.com:victor-onofre/openqaoa into dev
mar-ven Feb 5, 2024
b05dcf8
added fix
mar-ven Feb 5, 2024
d655829
Fix memory_map issue by simultaneous extraction of angle names and va…
KilianPoirier Feb 13, 2024
7c503d6
Merge branch 'dev' into hotfix_pip_install
KilianPoirier Feb 13, 2024
2b05cfa
Clean up debugging statements
KilianPoirier Feb 13, 2024
b3a501d
Added openqaoa-pyquil back into test workflows
KilianPoirier Feb 13, 2024
1032aa1
Added openqaoa-pyquil back inn test_imports.py
KilianPoirier Feb 13, 2024
e07a2c3
Added openqaoa-pyquil bacck into Makefile
KilianPoirier Feb 13, 2024
df8dd31
Fix SingletonGate import + remove PauliSumOp -> SparsePauliOp
KilianPoirier Feb 13, 2024
e7811e3
PauliSumOp -> SparsePauliOp
KilianPoirier Feb 13, 2024
1c85590
Removed deprecation QasmSimulator -> AerSimulator
KilianPoirier Feb 13, 2024
c14424d
Removed deprecation bind_parameters() -> assign_parameters()
KilianPoirier Feb 13, 2024
fd9f690
Removed deprecation int0 -> intp
KilianPoirier Feb 13, 2024
554c68d
Closed figure to free up memory
KilianPoirier Feb 13, 2024
4af33c2
Implemented consistent figure handling and added relevant docstrings
KilianPoirier Feb 14, 2024
14bb72b
Updated tests with better figure handling
KilianPoirier Feb 14, 2024
c8d78d9
Updated tests with better fiure handling
KilianPoirier Feb 14, 2024
a3534aa
Added explicit conversion to real to remove Warnings
KilianPoirier Feb 14, 2024
ac18df5
Improved figure handling + updated notebooks
KilianPoirier Feb 16, 2024
7702e8a
Fixed LaTeX expression
KilianPoirier Feb 16, 2024
9736001
Improved figure handling + updated notebook
KilianPoirier Feb 16, 2024
9452d40
Removed ';'
KilianPoirier Feb 16, 2024
c05bd39
Fixed LaTeX expression rendering
KilianPoirier Feb 16, 2024
08b2266
Updated RQAOA example for Azure
KilianPoirier Feb 16, 2024
878b5ba
Fixed pytest
KilianPoirier Feb 16, 2024
52790b6
Fixing pytest
KilianPoirier Feb 16, 2024
79f7f10
One more plt.close()
KilianPoirier Feb 19, 2024
f06735d
changes over the wrapper get_counts()
AdrianoLusso Feb 24, 2024
da96508
changes over the wrapper get_counts()
AdrianoLusso Feb 24, 2024
0eee27b
Merge pull request #301 from entropicalabs/fix_qiskit_and_deprecations
KilianPoirier Feb 27, 2024
dda5917
Merge branch 'dev' into hotfix_pip_install
KilianPoirier Feb 27, 2024
cdd33e7
new classes created, in order to take out the cldata json from ZNE im…
AdrianoLusso Feb 27, 2024
2873d99
work over weekly taks
AdrianoLusso Feb 29, 2024
64d44dd
cleaned up branch
mar-ven Mar 5, 2024
29f80b7
changes
AdrianoLusso Mar 5, 2024
ecd510b
changes
AdrianoLusso Mar 5, 2024
d1608de
changes
AdrianoLusso Mar 5, 2024
cdde379
delete changes to readme file
victor-onofre Mar 11, 2024
d79eb41
Merge pull request #300 from entropicalabs/hotfix_pip_install
KilianPoirier Mar 25, 2024
1fa5fee
solved the problem with the flip_bits() method
AdrianoLusso Mar 26, 2024
4ab6bf4
merged openqaoa dev
mar-ven Mar 28, 2024
06a51e3
modified docs for error mitigation properties
mar-ven Mar 28, 2024
5e8586f
addressed automatic formatting issues
mar-ven Mar 28, 2024
2a2b764
modified docs for set_error_mitigation_properties
mar-ven Mar 28, 2024
32231ba
fixed a typo in wrapper docs
mar-ven Mar 28, 2024
2258a64
fixed docs
mar-ven Mar 28, 2024
ef3c56a
fixed typo in code£
mar-ven Mar 28, 2024
c63c1eb
refactored set_error_mitigation_properties in the Workflow
mar-ven Mar 28, 2024
1768926
addressed automatic formatting issues
mar-ven Mar 28, 2024
e44e451
fixed docs for ErrorMitigationProperties children classes
mar-ven Mar 28, 2024
cedd126
fixed docs for ErrorMitigationProperties
mar-ven Mar 28, 2024
7f67e2b
renamed classes for ErrorMitigationProperties
mar-ven Mar 28, 2024
81cd604
removed useless imports in wrapper
mar-ven Mar 28, 2024
aaecedd
removed useless imports in wrapper
mar-ven Mar 28, 2024
1fc3628
introduced exception for unsupported ZNE wrapper parameters
mar-ven Mar 28, 2024
6c73dea
introduced exception for unsupported ZNE wrapper parameters
mar-ven Mar 28, 2024
b07ac41
introduced exception for unsupported ZNE wrapper parameters
mar-ven Mar 28, 2024
4043b69
fixed set_error_mitigation_properties error
mar-ven Mar 28, 2024
f53a5df
first two unittest for ZNEwrapper
victor-onofre Mar 29, 2024
0394553
add mitiq to requirements
victor-onofre Apr 4, 2024
b792e23
delete notebook
victor-onofre Apr 4, 2024
4a932f9
n_shots issue solved
AdrianoLusso Apr 9, 2024
ba58b35
add test for expectation zne wrapper
victor-onofre Apr 9, 2024
77d2ff7
ZNE tutorial notebook
victor-onofre May 8, 2024
b6143e1
add test for ZNE notebook
victor-onofre May 13, 2024
d1f2cbc
add test for ZNE notebook with correct name
victor-onofre May 13, 2024
968b741
the new zne tutorial uploaded
AdrianoLusso May 14, 2024
0f8f624
changes for solving the docs error, and other sencondary issues
AdrianoLusso May 16, 2024
7f84b11
Merge pull request #302 from victor-onofre/dev
KilianPoirier May 28, 2024
488e7ec
Remove outdated folding functions in mitiq
KilianPoirier May 28, 2024
755fa6e
Changed qiskit backend for tests to ibm_kyoto with single shot after …
KilianPoirier May 28, 2024
dc9d685
Updated qiskit qpu tests removing ibm_qasm_simulator and replacing wi…
KilianPoirier Jun 3, 2024
49727e7
[skip ci] Clean up docstrings and removed commented code
KilianPoirier Jun 3, 2024
0e12b0b
[skip ci] Removed another commented piece of code
KilianPoirier Jun 3, 2024
37d3270
Merge pull request #310 from entropicalabs/fix_mitiq_import
KilianPoirier Jun 3, 2024
544909b
Updated get_cmap
KilianPoirier Jun 4, 2024
da6a48b
Remove unused import
KilianPoirier Jun 4, 2024
69de0e2
[skip ci] Revert cplex requirements removal
KilianPoirier Jun 4, 2024
f2c16ad
Limited numpy version to 1.x
KilianPoirier Jun 19, 2024
d449fcc
Figure handling
KilianPoirier Jun 19, 2024
b42852d
Figure handling
KilianPoirier Jun 19, 2024
2fe6e81
Exported cplex requirement toa different make command + added cplex p…
KilianPoirier Jun 20, 2024
3b27fd4
Fixed plt.colorbar()
KilianPoirier Jun 20, 2024
0d6f66e
Figure handling
KilianPoirier Jun 20, 2024
981f662
Add pytest cplex mark to notebooks
KilianPoirier Jun 20, 2024
20aa92c
Update makefile
KilianPoirier Jun 20, 2024
62c8607
Updated makefile
KilianPoirier Jun 20, 2024
0e94376
Update workflows
KilianPoirier Jun 20, 2024
a544770
Bumped python version for workflows to 3.9
KilianPoirier Jun 20, 2024
3ad6190
Change RotationAngle __repr__ to make first char a letter
KilianPoirier Jun 20, 2024
9e1eb6e
Revert import of GateMapLabel
KilianPoirier Jun 20, 2024
e82f9bc
Fix angle naming pyquil
KilianPoirier Jun 21, 2024
8ef25b8
Changed assertion into more meaningful and robust testing subroutines
KilianPoirier Jun 24, 2024
dd6131a
Merge pull request #315 from entropicalabs/fix_cplex_tests
KilianPoirier Jun 25, 2024
782840d
[skip ci] Bump versions number
KilianPoirier Jul 10, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9

- name: Check-out repository
uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9
- name: Log in with Azure
uses: azure/login@v1
with:
Expand All @@ -34,7 +34,7 @@ jobs:
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
make dev-install-tests
make dev-install-tests-cplex
pip install ipykernel
- name: Setup IBMQ account
env:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
run: |
source env/bin/activate
ipython kernel install --name "env" --user
pytest tests/ src/openqaoa-core/tests src/openqaoa-azure/tests src/openqaoa-braket/tests src/openqaoa-qiskit/tests -m 'not (qpu or sim)' --cov -n auto
pytest tests/ src/*/tests -m 'not (qpu or sim)' --cov -n auto
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
with:
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9

- name: Install OpenQAOA
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_dev_ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9
- name: Install qvm
run: |
find /usr/lib -name "libffi.so*"
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
source env/bin/activate
ipython kernel install --name "env" --user
pytest tests/ src/*/tests/ -v -m 'not (qpu or docker_aws or api or sim or braket_api)'
pytest tests/ src/*/tests/ -v -m 'not (qpu or docker_aws or api or sim or braket_api or cplex)'

docs-ext:
runs-on: ubuntu-latest
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9

- name: Install OpenQAOA
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_main_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10']
python: ['3.9', '3.10']
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}

Expand All @@ -38,7 +38,7 @@ jobs:
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
make dev-install-tests
make dev-install-tests-cplex
pip install ipykernel
- name: Setup IBMQ account
env:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
run: |
source env/bin/activate
ipython kernel install --name "env" --user
pytest tests/ src/openqaoa-core/tests src/openqaoa-azure/tests src/openqaoa-braket/tests src/openqaoa-qiskit/tests -m 'not (qpu or sim)' --cov --cov-report=xml:coverage.xml
pytest tests/ src/*/tests -m 'not (qpu or sim)' --cov --cov-report=xml:coverage.xml

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
Expand All @@ -86,7 +86,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9

- name: Install OpenQAOA
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_main_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10']
python: ['3.9', '3.10']
forest-sdk-version: ['2.23.0']

runs-on: macos-latest
Expand Down Expand Up @@ -56,4 +56,4 @@ jobs:
run: |
source env/bin/activate
ipython kernel install --user --name "env"
pytest tests/ src/openqaoa-core/tests src/openqaoa-azure/tests src/openqaoa-braket/tests src/openqaoa-qiskit/tests -m 'not (qpu or api or docker_aws or braket_api or sim)'
pytest tests/ src/*/tests -m 'not (qpu or api or docker_aws or braket_api or sim or cplex)'
6 changes: 3 additions & 3 deletions .github/workflows/test_main_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10']
python: ['3.9', '3.10']
forest-sdk-version: [2.23.0]

# Run on a Windows machine
Expand Down Expand Up @@ -63,5 +63,5 @@ jobs:
run: |
.\env\Scripts\Activate.ps1
ipython kernel install --name "env" --user
pytest tests/ src/openqaoa-core/tests src/openqaoa-azure/tests src/openqaoa-braket/tests src/openqaoa-qiskit/tests -m 'not (qpu or api or docker_aws or braket_api or sim)'
Get-ChildItem -Directory | ForEach-Object { pytest $_.FullName -m 'not (qpu or api or docker_aws or braket_api or sim)'}
pytest tests/ src/*/tests -m 'not (qpu or api or docker_aws or braket_api or sim or cplex)'
Get-ChildItem -Directory | ForEach-Object { pytest $_.FullName -m 'not (qpu or api or docker_aws or braket_api or sim or cplex)'}
2 changes: 1 addition & 1 deletion .github/workflows/test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10']
python: ['3.9', '3.10']
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_pypi_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11']
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,7 @@ dmypy.json
braket-job*/

# Visual Studio code
.vscode/
.vscode/

debug.txt
debug_copy.txt
19 changes: 14 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local-install:
pip install ./src/openqaoa-core
pip install ./src/openqaoa-qiskit
# pip install ./src/openqaoa-pyquil
pip install ./src/openqaoa-pyquil
pip install ./src/openqaoa-braket
pip install ./src/openqaoa-azure
pip install .
Expand All @@ -14,7 +14,7 @@ local-install:
dev-install:
pip install -e ./src/openqaoa-core
pip install -e ./src/openqaoa-qiskit
# pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-braket
pip install -e ./src/openqaoa-azure
pip install -e .
Expand All @@ -23,7 +23,16 @@ dev-install:
dev-install-tests:
pip install -e ./src/openqaoa-core[tests]
pip install -e ./src/openqaoa-qiskit
# pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-braket
pip install -e ./src/openqaoa-azure
pip install -e .

.PHONY: dev-install-tests-cplex
dev-install-tests-cplex:
pip install -e ./src/openqaoa-core[tests-cplex]
pip install -e ./src/openqaoa-qiskit
pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-braket
pip install -e ./src/openqaoa-azure
pip install -e .
Expand All @@ -32,7 +41,7 @@ dev-install-tests:
dev-install-docs:
pip install -e ./src/openqaoa-core[docs]
pip install -e ./src/openqaoa-qiskit
# pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-braket
pip install -e ./src/openqaoa-azure
pip install -e .
Expand All @@ -41,7 +50,7 @@ dev-install-docs:
dev-install-all:
pip install -e ./src/openqaoa-core[all]
pip install -e ./src/openqaoa-qiskit
# pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-pyquil
pip install -e ./src/openqaoa-braket
pip install -e ./src/openqaoa-azure
pip install -e .
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# OpenQAOA

A multi-backend python library for quantum optimization using QAOA on Quantum computers and Quantum computer simulators. Check out the OpenQAOA website at [https://openqaoa.entropicalabs.com/](https://openqaoa.entropicalabs.com/)


**OpenQAOA is currently in OpenBeta.**

Expand Down
2 changes: 1 addition & 1 deletion _version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.5"
__version__ = "0.2.6"
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Contents
notebooks/13_optimizers.ipynb
notebooks/14_qaoa_benchmark.ipynb
notebooks/X_dumping_data.ipynb

notebooks/15_Zero_Noise_Extrapolation.ipynb

Indices and tables
==================
Expand Down
407 changes: 181 additions & 226 deletions examples/01_workflows_example.ipynb

Large diffs are not rendered by default.

25 changes: 16 additions & 9 deletions examples/02_simulators_comparison.ipynb

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions examples/04_qaoa_variational_parameters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@
"source": [
"For instance, for a depth-2 circuit the corresponding unitary operator would then become:\n",
"\n",
"\\begin{multline}\n",
"U(\\beta ,\\gamma ,\\Gamma )=exp(i\\sum_j\\beta^{(2)}_jX_j)exp(−i\\sum_{j∈s}\\gamma^{(2)}_jh_jZ_j− \\\\ (i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(2)}_{jk}g_{jk}Z_jZ_k)exp(i\\sum_j\\beta^{(1)}_jX_j) \\\\ exp(−i\\sum_{j∈s}\\gamma^{(1)}_jh_jZ_j−(i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(1)}_{jk}g_{jk}Z_jZ_k)\n",
"\\end{multline}"
"\\begin{align*}\n",
"U(\\beta ,\\gamma ,\\Gamma )=&\\text{exp}{\\Big(i\\sum_j\\beta^{(2)}_jX_j\\Big)}\\cdot \\text{exp}{\\Bigg(−i\\sum_{j∈s}\\gamma^{(2)}_jh_jZ_j− (i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(2)}_{jk}g_{jk}Z_jZ_k\\Bigg)} \\\\ &\\qquad\\qquad\\qquad\\cdot\\text{exp}{\\Big(i\\sum_j\\beta^{(1)}_jX_j\\Big)}\\cdot\\text{exp}{\\Bigg(−i\\sum_{j∈s}\\gamma^{(1)}_jh_jZ_j−(i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(1)}_{jk}g_{jk}Z_jZ_k\\Bigg)}\n",
"\\end{align*}"
]
},
{
Expand Down Expand Up @@ -254,8 +254,8 @@
"Standard Parameterisation:\n",
"\tp: 1\n",
"Variational Parameters:\n",
"\tbetas: [0.67825497]\n",
"\tgammas: [1.33848011]"
"\tbetas: [0.76515737]\n",
"\tgammas: [2.96213888]"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -309,10 +309,10 @@
"Extended Parameterisation:\n",
"\tp: 1\n",
"Parameters:\n",
"\tbetas_singles: [[1.93258376 1.75922895 2.027917 ]]\n",
"\tbetas_singles: [[2.95554443 1.63009578 2.5532 ]]\n",
"\tbetas_pairs: []\n",
"\tgammas_singles: [[0.79981656]]\n",
"\tgammas_pairs: [[1.25608449 2.33059942]]"
"\tgammas_singles: [[2.19785279]]\n",
"\tgammas_pairs: [[0.92556918 1.88298698]]"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -687,9 +687,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "fix_qiskit_and_deprecations",
"language": "python",
"name": "oq_reviews"
"name": "fix_qiskit_and_deprecations"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -701,7 +701,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
"version": "3.10.13"
},
"vscode": {
"interpreter": {
Expand Down
56 changes: 33 additions & 23 deletions examples/05_advanced_parameterization.ipynb

Large diffs are not rendered by default.

42 changes: 31 additions & 11 deletions examples/06_fast_qaoa_simulator.ipynb

Large diffs are not rendered by default.

34 changes: 21 additions & 13 deletions examples/07_cost_landscapes_w_manual_mode.ipynb

Large diffs are not rendered by default.

Loading