-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added max_circuits_per_job and removed deepcopy dependency of the qua…
…ntum kernel trainer fixing #701 and #600 (#772) * Added an option for num_circuits per job for kernels to fix #701 * Updated documentation and format the style. * Removed deepcopy dependency in quantum_kernel_trainer.py * Added release notes * quick fix for spell test * Added unit tests for max_circuits_per_job * Update fix-701-max_circuits_per_job-and-600-deepcopy-dependency-e6eda2e5b986c1be.yaml Small release note bugfix * Update fix-701-max_circuits_per_job-and-600-deepcopy-dependency-e6eda2e5b986c1be.yaml * Minor modifications for the unit test * Removed copy of TrainableKernel --------- Co-authored-by: oscar-wallis <[email protected]> (cherry picked from commit 2f49e9e)
- Loading branch information
1 parent
65dd13e
commit f76b3a1
Showing
4 changed files
with
81 additions
and
22 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
14 changes: 14 additions & 0 deletions
14
...otes/notes/fix-701-max_circuits_per_job-and-600-deepcopy-dependency-e6eda2e5b986c1be.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
fixes: | ||
- | | ||
Added a `max_circuits_per_job` parameter to the :class:`.FidelityQuantumKernel` used | ||
in the case that if more circuits are submitted than the job limit for the | ||
backend, the circuits are split up and run through separate jobs. | ||
- | | ||
Removed :class:`.QuantumKernelTrainer` dependency on `copy.deepcopy` that was | ||
throwing an error with real backends. Now, it modifies the :class:`.TrainableKernel` | ||
in place. If you would like to use the initial kernel, please call | ||
:meth:`~.TrainableKernel.assign_training_parameters` of the :class:`~.TrainableKernel` | ||
using the :attr:`~.QuantumKernelTrainer.initial_point` attribute of | ||
:class:`~.QuantumKernelTrainer`. | ||
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