Skip to content

Commit

Permalink
Add licence headers (#29)
Browse files Browse the repository at this point in the history
This matches other Qiskit projects.  They originally weren't in these
files because the project wasn't originally going to be managed by the
Qiskit organisation, but was just a proof of concept.
  • Loading branch information
jakelishman authored Mar 14, 2024
1 parent a56e970 commit 3afada3
Show file tree
Hide file tree
Showing 12 changed files with 131 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

"""Basic importer for OpenQASM 3 programmes into Qiskit."""

__version__ = "0.4.1"
Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

import openqasm3
from qiskit import QuantumCircuit

Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/converter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

__all__ = ["ConvertVisitor"]

import re
Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

import enum
from typing import Any, Optional
from openqasm3 import ast
Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

from typing import NoReturn, Optional

from openqasm3 import ast
Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/expression.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

"""QASM visitors for the expression tree, resolving it into objects that are useful for interaction
with Qiskit.
Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/state.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

import re
import enum
from typing import Optional, Union
Expand Down
11 changes: 11 additions & 0 deletions src/qiskit_qasm3_import/types.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# 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.

import abc
import typing

Expand Down
10 changes: 10 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license
# in the LICENSE 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.
11 changes: 11 additions & 0 deletions tests/test_conditions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license
# in the LICENSE 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.

import pytest

from openqasm3 import ast
Expand Down
11 changes: 11 additions & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license
# in the LICENSE 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.

import math

import numpy as np
Expand Down
11 changes: 11 additions & 0 deletions tests/test_values.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license
# in the LICENSE 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.

import operator

import pytest
Expand Down

0 comments on commit 3afada3

Please sign in to comment.