diff --git a/covalent/_results_manager/qresult.py b/covalent/_results_manager/qresult.py index 867574553..f77a24fb6 100644 --- a/covalent/_results_manager/qresult.py +++ b/covalent/_results_manager/qresult.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from typing import Any diff --git a/covalent/_shared_files/pickling.py b/covalent/_shared_files/pickling.py index 37997f7d4..ed4a535ce 100644 --- a/covalent/_shared_files/pickling.py +++ b/covalent/_shared_files/pickling.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. # pylint: disable=invalid-name diff --git a/covalent/_shared_files/qelectron_utils.py b/covalent/_shared_files/qelectron_utils.py index 0716ada32..4b5e58748 100644 --- a/covalent/_shared_files/qelectron_utils.py +++ b/covalent/_shared_files/qelectron_utils.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import base64 import re diff --git a/covalent/_shared_files/qinfo.py b/covalent/_shared_files/qinfo.py index 5eea1eeb3..92056173b 100644 --- a/covalent/_shared_files/qinfo.py +++ b/covalent/_shared_files/qinfo.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """QNode and QElectron information containers.""" diff --git a/covalent/_shared_files/qresult_utils.py b/covalent/_shared_files/qresult_utils.py index cdb98c149..9ffe3c182 100644 --- a/covalent/_shared_files/qresult_utils.py +++ b/covalent/_shared_files/qresult_utils.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import warnings from typing import Any, Callable, List, Optional diff --git a/covalent/_workflow/qdevice.py b/covalent/_workflow/qdevice.py index 8e8829fec..418c167f9 100644 --- a/covalent/_workflow/qdevice.py +++ b/covalent/_workflow/qdevice.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """ Define the custom Pennylane device that interacts with Covalent's Quantum Executors. diff --git a/covalent/_workflow/qelectron.py b/covalent/_workflow/qelectron.py index d325c19f0..e0356723a 100644 --- a/covalent/_workflow/qelectron.py +++ b/covalent/_workflow/qelectron.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import functools from typing import Callable, List, Optional, Union diff --git a/covalent/_workflow/qnode.py b/covalent/_workflow/qnode.py index 4ce5709bd..7e97fee34 100644 --- a/covalent/_workflow/qnode.py +++ b/covalent/_workflow/qnode.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """ Define the special QNode that replaces Pennylane circuits decorated with `@ct.qelectron`. diff --git a/covalent/cloud_resource_manager/__init__.py b/covalent/cloud_resource_manager/__init__.py index d1f2c47e0..80d8380ff 100644 --- a/covalent/cloud_resource_manager/__init__.py +++ b/covalent/cloud_resource_manager/__init__.py @@ -2,20 +2,16 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from .core import CloudResourceManager diff --git a/covalent/cloud_resource_manager/core.py b/covalent/cloud_resource_manager/core.py index 94947afdd..45c8604eb 100644 --- a/covalent/cloud_resource_manager/core.py +++ b/covalent/cloud_resource_manager/core.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import importlib diff --git a/covalent/executor/qbase.py b/covalent/executor/qbase.py index 856ce8730..ca04a1c53 100644 --- a/covalent/executor/qbase.py +++ b/covalent/executor/qbase.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import asyncio import time diff --git a/covalent/executor/quantum_plugins/aws_plugin/__init__.py b/covalent/executor/quantum_plugins/aws_plugin/__init__.py index 9c01c1264..169ba947f 100644 --- a/covalent/executor/quantum_plugins/aws_plugin/__init__.py +++ b/covalent/executor/quantum_plugins/aws_plugin/__init__.py @@ -2,20 +2,16 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from .aws_plugin import BraketQubitExecutor, LocalBraketQubitExecutor diff --git a/covalent/executor/quantum_plugins/aws_plugin/aws_plugin.py b/covalent/executor/quantum_plugins/aws_plugin/aws_plugin.py index f4c5adc4a..afda1e3b6 100644 --- a/covalent/executor/quantum_plugins/aws_plugin/aws_plugin.py +++ b/covalent/executor/quantum_plugins/aws_plugin/aws_plugin.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from typing import Optional diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/__init__.py b/covalent/executor/quantum_plugins/qiskit_plugin/__init__.py index 8e50250a0..0b79358a0 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/__init__.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/__init__.py @@ -2,20 +2,16 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from qiskit_plugin import IBMQExecutor, QiskitExecutor diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/devices_base.py b/covalent/executor/quantum_plugins/qiskit_plugin/devices_base.py index 058fce75b..744c3034e 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/devices_base.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/devices_base.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """Wrappers for the existing Pennylane-Qiskit interface""" import warnings diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py b/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py index 1de60531c..ef276a96c 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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-Qiskit device that uses the local Qiskit `Sampler` primitive diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_plugin.py b/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_plugin.py index 47e62a781..43531ddef 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_plugin.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_plugin.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import asyncio import time diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_utils.py b/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_utils.py index 41228b774..e683f96df 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_utils.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/qiskit_utils.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """ Utilities for Qiskit-based QElectron executors and devices diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py b/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py index 300c195bb..80b1a6708 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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-Qiskit device that uses the Qiskit Runtime `Sampler` primitive diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/sessions.py b/covalent/executor/quantum_plugins/qiskit_plugin/sessions.py index c2d65bb3d..71063c449 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/sessions.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/sessions.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """ Defines interactions with Qiskit Runtime sessions and services. diff --git a/covalent/executor/utils/context.py b/covalent/executor/utils/context.py index a3c0e1969..2bd2a1770 100644 --- a/covalent/executor/utils/context.py +++ b/covalent/executor/utils/context.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from contextlib import contextmanager diff --git a/covalent/quantum/__init__.py b/covalent/quantum/__init__.py index 48984cda2..9e5551a23 100644 --- a/covalent/quantum/__init__.py +++ b/covalent/quantum/__init__.py @@ -2,20 +2,16 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from .qcluster import QCluster, Simulator diff --git a/covalent/quantum/qclient/__init__.py b/covalent/quantum/qclient/__init__.py index 47d66bb77..d8e0960cc 100644 --- a/covalent/quantum/qclient/__init__.py +++ b/covalent/quantum/qclient/__init__.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from .base_client import BaseQClient from .local_client import LocalQClient diff --git a/covalent/quantum/qclient/base_client.py b/covalent/quantum/qclient/base_client.py index 1454ccf07..d80c6e1c4 100644 --- a/covalent/quantum/qclient/base_client.py +++ b/covalent/quantum/qclient/base_client.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from abc import ABC, abstractmethod, abstractproperty diff --git a/covalent/quantum/qclient/core.py b/covalent/quantum/qclient/core.py index acaf0f834..041405413 100644 --- a/covalent/quantum/qclient/core.py +++ b/covalent/quantum/qclient/core.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from typing import List diff --git a/covalent/quantum/qclient/local_client.py b/covalent/quantum/qclient/local_client.py index a10ba2ebc..89bff7382 100644 --- a/covalent/quantum/qclient/local_client.py +++ b/covalent/quantum/qclient/local_client.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from ..._shared_files.utils import cloudpickle_deserialize, cloudpickle_serialize from ..qserver import LocalQServer diff --git a/covalent/quantum/qcluster/__init__.py b/covalent/quantum/qcluster/__init__.py index 1f3893a16..ad218456e 100644 --- a/covalent/quantum/qcluster/__init__.py +++ b/covalent/quantum/qcluster/__init__.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """ Defines QExecutors and provides a "manager" to get all available QExecutors diff --git a/covalent/quantum/qcluster/base.py b/covalent/quantum/qcluster/base.py index b93639c95..cef232754 100644 --- a/covalent/quantum/qcluster/base.py +++ b/covalent/quantum/qcluster/base.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import asyncio from abc import ABC, abstractmethod diff --git a/covalent/quantum/qcluster/clusters.py b/covalent/quantum/qcluster/clusters.py index 475d99e82..fe56aecbf 100644 --- a/covalent/quantum/qcluster/clusters.py +++ b/covalent/quantum/qcluster/clusters.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import base64 from typing import Callable, Union diff --git a/covalent/quantum/qcluster/simulator.py b/covalent/quantum/qcluster/simulator.py index df84dae4e..f6cab7c0d 100644 --- a/covalent/quantum/qcluster/simulator.py +++ b/covalent/quantum/qcluster/simulator.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from typing import Union diff --git a/covalent/quantum/qserver/__init__.py b/covalent/quantum/qserver/__init__.py index add9fe547..1f06fe57a 100644 --- a/covalent/quantum/qserver/__init__.py +++ b/covalent/quantum/qserver/__init__.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from .core import QServer from .servers import LocalQServer diff --git a/covalent/quantum/qserver/core.py b/covalent/quantum/qserver/core.py index ab3364f37..340f4c649 100644 --- a/covalent/quantum/qserver/core.py +++ b/covalent/quantum/qserver/core.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """ Quantum Server Implementation: Handles the async execution of quantum circuits. diff --git a/covalent/quantum/qserver/database.py b/covalent/quantum/qserver/database.py index 6ed7caded..eb2becef7 100644 --- a/covalent/quantum/qserver/database.py +++ b/covalent/quantum/qserver/database.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from pathlib import Path diff --git a/covalent/quantum/qserver/serialize.py b/covalent/quantum/qserver/serialize.py index 8140d03a5..097d46e03 100644 --- a/covalent/quantum/qserver/serialize.py +++ b/covalent/quantum/qserver/serialize.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. """ Implement several different serialization methods for QNode output data written diff --git a/covalent/quantum/qserver/servers/__init__.py b/covalent/quantum/qserver/servers/__init__.py index 5391d2f13..b219efd70 100644 --- a/covalent/quantum/qserver/servers/__init__.py +++ b/covalent/quantum/qserver/servers/__init__.py @@ -2,20 +2,16 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from .local import LocalQServer diff --git a/covalent/quantum/qserver/servers/local.py b/covalent/quantum/qserver/servers/local.py index 9e08aef1f..aa71ad917 100644 --- a/covalent/quantum/qserver/servers/local.py +++ b/covalent/quantum/qserver/servers/local.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from ..core import QServer diff --git a/covalent/quantum/qserver/utils.py b/covalent/quantum/qserver/utils.py index 1ae2f7fd0..a301e3a93 100644 --- a/covalent/quantum/qserver/utils.py +++ b/covalent/quantum/qserver/utils.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import datetime import importlib diff --git a/covalent/triggers/sqlite_trigger.py b/covalent/triggers/sqlite_trigger.py index f233d9342..840ef9e0e 100644 --- a/covalent/triggers/sqlite_trigger.py +++ b/covalent/triggers/sqlite_trigger.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import sqlite3 import time diff --git a/covalent_dispatcher/_service/app_dask.py b/covalent_dispatcher/_service/app_dask.py index bd8010f83..58a4bd0bc 100644 --- a/covalent_dispatcher/_service/app_dask.py +++ b/covalent_dispatcher/_service/app_dask.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from __future__ import annotations diff --git a/doc/source/how_to/coding/test_module.py b/doc/source/how_to/coding/test_module.py index 1c262b109..a05181ed9 100644 --- a/doc/source/how_to/coding/test_module.py +++ b/doc/source/how_to/coding/test_module.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. def entrypoint(x: int, y: int) -> int: diff --git a/tests/covalent_tests/cloud_resource_manager/__init__.py b/tests/covalent_tests/cloud_resource_manager/__init__.py index 9d1b05526..21d7eaa5c 100644 --- a/tests/covalent_tests/cloud_resource_manager/__init__.py +++ b/tests/covalent_tests/cloud_resource_manager/__init__.py @@ -2,18 +2,14 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. diff --git a/tests/covalent_tests/cloud_resource_manager/core_test.py b/tests/covalent_tests/cloud_resource_manager/core_test.py index da675f9e1..e4c389ddd 100644 --- a/tests/covalent_tests/cloud_resource_manager/core_test.py +++ b/tests/covalent_tests/cloud_resource_manager/core_test.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. import subprocess diff --git a/tests/covalent_tests/triggers/sqlite_trigger_test.py b/tests/covalent_tests/triggers/sqlite_trigger_test.py index 2b9e38ff6..f4f38764f 100644 --- a/tests/covalent_tests/triggers/sqlite_trigger_test.py +++ b/tests/covalent_tests/triggers/sqlite_trigger_test.py @@ -2,21 +2,17 @@ # # This file is part of Covalent. # -# Licensed under the GNU Affero General Public License 3.0 (the "License"). -# A copy of the License may be obtained with this software package or at +# Licensed under the Apache License 2.0 (the "License"). A copy of the +# License may be obtained with this software package or at # -# https://www.gnu.org/licenses/agpl-3.0.en.html +# https://www.apache.org/licenses/LICENSE-2.0 # -# Use of this file is prohibited except in compliance with the License. Any -# modifications or derivative works of this file must retain this copyright -# notice, and modified files must contain a notice indicating that they have -# been altered from the originals. -# -# Covalent is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. -# -# Relief from the License may be granted by purchasing a commercial license. +# Use of this file is prohibited except in compliance with the License. +# 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. from sqlite3 import OperationalError