Skip to content

Commit

Permalink
Update copyright to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseclectic committed Jan 9, 2024
1 parent a50ea2d commit c54b0d0
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
28 changes: 14 additions & 14 deletions qiskit/primitives/containers/bindings_array.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down Expand Up @@ -32,22 +32,22 @@

class BindingsArray(ShapedMixin):
r"""Stores parameter binding value sets for a :class:`qiskit.QuantumCircuit`.
A single parameter binding set provides numeric values to bind to a circuit with free
class:`qiskit.circuit.Parameter`\s. An instance of this class stores an array-valued
collection of such sets. The simplest example is a 0-d array consisting of a single
parameter binding set, whereas an n-d array of parameter binding sets represents an
A single parameter binding set provides numeric values to bind to a circuit with free
class:`qiskit.circuit.Parameter`\s. An instance of this class stores an array-valued
collection of such sets. The simplest example is a 0-d array consisting of a single
parameter binding set, whereas an n-d array of parameter binding sets represents an
n-d sweep over values.
The storage format is a list of arrays, ``[vals0, vals1, ...]``, as well as a dictionary of
arrays attached to parameters, ``{params0: kwvals0, ...}``. A convention is used
where the last dimension of each array indexes (a subset of) circuit parameters. For
example, if the last dimension of ``vals1`` is 25, then it represents an array of
possible binding values for 25 distinct parameters, where its leading shape is the
array :attr:`~.shape` of its binding array. This implies a degeneracy of the storage
format: ``[vals, vals1[..., :10], vals1[..., 10:], ...]`` is exactly equivalent to
``[vals0, vals1, ...]`` in the bindings it specifies. This allows flexibility about whether
values for different parameters are stored in one big array, or across several smaller
arrays attached to parameters, ``{params0: kwvals0, ...}``. A convention is used
where the last dimension of each array indexes (a subset of) circuit parameters. For
example, if the last dimension of ``vals1`` is 25, then it represents an array of
possible binding values for 25 distinct parameters, where its leading shape is the
array :attr:`~.shape` of its binding array. This implies a degeneracy of the storage
format: ``[vals, vals1[..., :10], vals1[..., 10:], ...]`` is exactly equivalent to
``[vals0, vals1, ...]`` in the bindings it specifies. This allows flexibility about whether
values for different parameters are stored in one big array, or across several smaller
arrays. It also allows different parameters to use different dtypes.
.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion qiskit/primitives/containers/data_bin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion qiskit/primitives/containers/object_array.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion qiskit/primitives/containers/observables_array.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion qiskit/primitives/containers/primitive_result.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion qiskit/primitives/containers/shape.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion test/python/primitives/containers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion test/python/primitives/containers/test_bindings_array.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion test/python/primitives/containers/test_data_bin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion test/python/primitives/containers/test_primitive_result.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down
2 changes: 1 addition & 1 deletion test/python/primitives/containers/test_shape.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2023.
# (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
Expand Down

0 comments on commit c54b0d0

Please sign in to comment.