-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from raulconchello/dev_PennyLane_optimization…
…_methods Implementation of pennylane optimizers
- Loading branch information
Showing
35 changed files
with
7,318 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PennyLane | ||
Copyright 2018-2021 Xanadu Quantum Technologies Inc. | ||
|
||
This folder contains code developed in Xanadu Quantum Technologies Inc. | ||
The code in folders | ||
openqaoa.optimizers.pennylane.fourier | ||
openqaoa.optimizers.pennylane.math | ||
openqaoa.optimizers.pennylane.numpy | ||
openqaoa.optimizers.pennylane.pennylane_optimizers | ||
has been taken from the PennyLane library, https://github.com/PennyLaneAI/pennylane, | ||
developed by Xanadu Quantum Technologies Inc. | ||
PennyLane is free and open source, released under the Apache License, Version 2.0. | ||
Some lines of code have been modified, which has been indicated in the modified files. |
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,34 @@ | ||
# Copyright 2022 Entropica Labs | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
""" | ||
PennyLane optimizers directory for the classical optimization loop for QAOA | ||
""" | ||
|
||
from .pennylane_optimizers.adagrad import * | ||
from .pennylane_optimizers.adam import * | ||
from .pennylane_optimizers.gradient_descent import * | ||
from .pennylane_optimizers.momentum import * | ||
from .pennylane_optimizers.nesterov_momentum import * | ||
from .pennylane_optimizers.rms_prop import * | ||
from .pennylane_optimizers.rotosolve import * | ||
from .pennylane_optimizers.spsa import * | ||
from . import numpy | ||
from . import math | ||
from . import fourier | ||
|
||
#empty class to be used as a placeholder for the QNode class from PennyLane | ||
class QNode: | ||
def __init__(self): | ||
pass |
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,17 @@ | ||
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. | ||
|
||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
|
||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
"""This module contains functions to analyze the Fourier representation | ||
of quantum circuits.""" | ||
import warnings | ||
from .reconstruct import reconstruct |
Oops, something went wrong.