-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to use QAOA-CV optimizer inside classification module (#312)
* qaoa cv optimizer for QuanticNCH and MDM * add QAOA-CV to classification module (MDM and NCH) * complete tests * [pre-commit.ci] auto fixes from pre-commit.com hooks * default create_mixer and n_reps for QAOA-CV * [pre-commit.ci] auto fixes from pre-commit.com hooks * flake8 * add not implemented method for QAOA-CV * [pre-commit.ci] auto fixes from pre-commit.com hooks * reshape solution * add inequalitytoequality converter * [pre-commit.ci] auto fixes from pre-commit.com hooks * encode not available in new version of the inegality converter. * use LinearEqualityToPenalty converter instead * - bound variables (even if type is binary -> fix bug with LinearEqualityToPenalty - check if cost operator is pauli identity - only one parameter in initial guess? (I am not sure why though) * [pre-commit.ci] auto fixes from pre-commit.com hooks * fix bug with quantum=False (private attribute _quantum_instance not available) * add use_params to all mixers * flake8 * simplify condition for checking whether there is quantum_instance * missing condition on "cost operator has no parameters" * missing file * export is_pauli_identity to math module * [pre-commit.ci] auto fixes from pre-commit.com hooks * add QAOACV test to light benchmark * [pre-commit.ci] auto fixes from pre-commit.com hooks * flake8 * change default optimizer for QAOA-CV * remove use_params misplaced * Update pyriemann_qiskit/classification.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/classification.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/math.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * rename imports * correct location of docstrings * correct import of numpy * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * replace all "our" * replace reference to covariance in docplex module * rename covmat to X * check dostrings in docplex.py * [pre-commit.ci] auto fixes from pre-commit.com hooks * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * Update pyriemann_qiskit/utils/hyper_params_factory.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks * Improve description of `docplex_spdmat` * Update pyriemann_qiskit/utils/docplex.py Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com> * fix import of light_benchmark * Update light_benchmark.py --------- Co-authored-by: Gregoire Cattan <gregoire.cattan@ibm.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Quentin Barthélemy <q.barthelemy@gmail.com>
- Loading branch information
1 parent
cda6a00
commit 05c68c4
Showing
11 changed files
with
644 additions
and
327 deletions.
There are no files selected for viewing
This file contains 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 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 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 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.