-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Projected Variational Quantum Dynamics (Qiskit/qiskit#8304)
* pvqd dradt * update as theta + difference * black * refactor test * update to new time evo framework * add gradients * use gradient only if supported * polishing! - reno - remove old pvqd file - allow attributes to be None - more tests * fix algorithms import * changes from code review * add more tests for different ops * refactor PVQD to multiple files * remove todo * comments from review * rm OrderedDict from unitary no idea why this unused import existed, that should be caught before this PR? * changes from code review * remove function to attach intial states * include comments from review - support MatrixOp - default for timestep - update reno with refs - test step and get_loss * make only quantum instance and optimizer optional, and use num_timesteps * fix docs * add comment why Optimizer is optional * use class attributes to document mutable attrs * rm duplicate quantum_instance doc * fix attributes docs Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e2d5972
commit adc48b5
Showing
7 changed files
with
921 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2022. | ||
# | ||
# This code is licensed under the Apache License, Version 2.0. You may | ||
# obtain a copy of this license in the LICENSE.txt file in the root directory | ||
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Any modifications or derivative works of this code must retain this | ||
# copyright notice, and modified files need to carry a notice indicating | ||
# that they have been altered from the originals. | ||
|
||
"""The projected Variational Quantum Dynamic (p-VQD) module.""" | ||
|
||
from .pvqd_result import PVQDResult | ||
from .pvqd import PVQD | ||
|
||
__all__ = ["PVQD", "PVQDResult"] |
Oops, something went wrong.