Skip to content

Commit 40f99bb

Browse files
adekusar-drlmanoelmarquesgentinettagianElePTa-matsuo
authored
Updated tutorials (#501)
* Add primitives branch to CI workflow * added pocs * init fixed * more init * Add qnns PoC * Establish qnn branch * Add fwd unit test * Refactor sampler qnn * Undo kernel changes * Start adding new type hint style * Move to neural_networks * Runnable tests * wip estimator qnn * wip * added estimator qnn * wip added unittests * added unittests * reno * fix reno * support estimator qnn in two_layer_qnn * Update typehints, refactor * Add new unittests, fix code * Add gradient unit test * Add torch tests * Remove unwanted change circuitQNN * Remove utils * Fix style, lint * Add VQC * Fix mypy * fix mypy * fix mypy * fix mypy * Restore workflow * Restore workflow * Update .github/workflows/main.yml * Fix mypy * Fix CI (hopefully) * Update requirements * Add sparse support * Fix style etc * Add type ignore * Fix style? * skip test if not sparse * Add type ignore * Fix mypy * Make keyword args * Make keyword args * Apply review comments * Fix tests, final refactor, add docstring * Add Sampler QNN * Update qiskit_machine_learning/algorithms/classifiers/vqc.py Co-authored-by: Steve Wood <[email protected]> * updated * Apply reviews vqc * Apply reviews * Fix neko test * Fix spell check * make codes simpler with numpy * fix two_layer_qnn.py * wip unittests * update vqr * fix pylint * use kwargs * simplify reno code block * refactorings * unit tests, reno, spelling * vqr properties test * vectorize forward post processing * some refactorings * Update qiskit_machine_learning/algorithms/regressors/vqr.py Co-authored-by: Steve Wood <[email protected]> * Update qiskit_machine_learning/algorithms/regressors/vqr.py Co-authored-by: Steve Wood <[email protected]> * Update qiskit_machine_learning/algorithms/regressors/vqr.py Co-authored-by: Steve Wood <[email protected]> * docstrings * added more unittests * Update releasenotes/notes/add-estimator-qnn-270b31662988bef9.yaml Co-authored-by: Steve Wood <[email protected]> * code review * updated * fix lint * fix * fix spelling mistake * fix backward pass with no weight params * fix * Update qiskit_machine_learning/neural_networks/sampler_qnn.py * reflected comments * fix spell * Add try-catch * fix * add torch tests * convert two first tutorials * update 02a * update 05 * update 05 * update 09 * update 11 * code review * update qcnn * fix spell Co-authored-by: Manoel Marques <[email protected]> Co-authored-by: Gian Gentinetta <[email protected]> Co-authored-by: ElePT <[email protected]> Co-authored-by: ElePT <[email protected]> Co-authored-by: a-matsuo <[email protected]> Co-authored-by: Steve Wood <[email protected]>
1 parent f354fd5 commit 40f99bb

8 files changed

+433
-973
lines changed

.pylintdict

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ expressibility
7070
farrokh
7171
fidelities
7272
formatter
73+
frontend
7374
func
7475
gambetta
7576
gaussian

docs/tutorials/01_neural_networks.ipynb

Lines changed: 105 additions & 542 deletions
Large diffs are not rendered by default.

docs/tutorials/02_neural_network_classifier_and_regressor.ipynb

Lines changed: 109 additions & 91 deletions
Large diffs are not rendered by default.

docs/tutorials/02a_training_a_quantum_model_on_a_real_dataset.ipynb

Lines changed: 51 additions & 57 deletions
Large diffs are not rendered by default.

docs/tutorials/05_torch_connector.ipynb

Lines changed: 102 additions & 206 deletions
Large diffs are not rendered by default.

docs/tutorials/09_saving_and_loading_models.ipynb

Lines changed: 19 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[1.930057091422052, 0.2829424508139703, 0.35555636265939633, 0.1750006532903061, 0.3002103666790018, 0.6641911912373437, 1.3310981300850042, 0.5022717197547227, 0.44912874128880675, 0.40236963192983266, 0.3459537084665159, 0.9786311288435154, 0.48716712269991697, -0.007081389738930712, 0.21570815199311827, 0.07334182375267477, 0.6907887498355103, 0.21771166428570735, 1.087665977608006, 1.2571463700739218, 1.0866597360102666, 2.126145551821481, 0.8914518096731741, 1.5053260036617715, 0.44798876926441555, 0.9498701675467225, 0.15490304396579338, 0.1338674031994701, -0.6938374500039391, 0.029396385425104116, -0.09785818314088227, -0.31198441382224246, 0.20004568516690807, 1.848494069662786, -0.028371899054628447, -0.15229494459622284, 0.7653870524298326, 0.6881492316484289, 0.6759011152318357, 1.6028387103546868, 0.47711915171800057, -0.26162053028790294, -0.12898443497061718, 0.5281303751714184, 0.4957555866394333, 1.6095784010055925, 0.5685823964468215, 1.2812276175594062, 0.3032325725579015, 1.4291081956286258, 0.7081163438891277, 1.8291375321912147, -0.11047287562207528, 0.2751308409529747, 0.2834764252747557, 0.29668607404725605, 0.008300790063532154, 0.6707732056265118, 0.5325267632509095, 0.7240676576317691, 0.08123934531343553, -0.0038536767244725153, -0.1001165849018211]

docs/tutorials/11_quantum_convolutional_neural_networks.ipynb

Lines changed: 45 additions & 49 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)