Skip to content

Commit d36f4f8

Browse files
q-inhowoodsp-ibm
andauthored
Fix minor typos (#971)
* Fix typo * Update copyright year to 2025 * Revert the change in yaml files --------- Co-authored-by: Steve Wood <[email protected]>
1 parent 36523d2 commit d36f4f8

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

docs/tutorials/11_quantum_convolutional_neural_networks.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@
808808
"source": [
809809
"In this example, we will use the COBYLA optimizer to train our classifier, which is a numerical optimization method commonly used for classification machine learning algorithms.\n",
810810
"\n",
811-
"We then place the the callback function, optimizer and operator of our QCNN created above into Qiskit Machine Learning's built in Neural Network Classifier, which we can then use to train our model. \n",
811+
"We then place the callback function, optimizer and operator of our QCNN created above into Qiskit Machine Learning's built in Neural Network Classifier, which we can then use to train our model. \n",
812812
"\n",
813813
"Since model training may take a long time we have already pre-trained the model for some iterations and saved the pre-trained weights. We'll continue training from that point by setting `initial_point` to a vector of pre-trained weights."
814814
]

docs/tutorials/12_quantum_autoencoder.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "d1764d89",
1414
"metadata": {},
1515
"source": [
16-
"The goal of this tutorial is to build an Quantum Autoencoder, a circuit which can compress a quantum state onto a smaller amount of qubits, while retaining the information from the initial state.\n",
16+
"The goal of this tutorial is to build a Quantum Autoencoder, a circuit which can compress a quantum state onto a smaller amount of qubits, while retaining the information from the initial state.\n",
1717
"\n",
1818
"Throughout this tutorial, we explain the architecture of a Quantum Autoencoder and how one can design and train such a system to compress and encode information. Following this discussion, we give two examples to demonstrate the capabilities of such a system to compress different quantum states, as well as the ability to compress images of zeros and ones. "
1919
]
@@ -756,7 +756,7 @@
756756
"id": "4f6f37a6",
757757
"metadata": {},
758758
"source": [
759-
"One can also apply a Quantum Autoencoder to more complicated examples, such as a set of handwritten digits in order to compress the dataset. Below, we will show that we can indeed train an Quantum Autoencoder to compress such an example, giving us the ability to store data more efficiently on a Quantum Computer. \n",
759+
"One can also apply a Quantum Autoencoder to more complicated examples, such as a set of handwritten digits in order to compress the dataset. Below, we will show that we can indeed train a Quantum Autoencoder to compress such an example, giving us the ability to store data more efficiently on a Quantum Computer. \n",
760760
"\n",
761761
"For this tutorial, we will build a Quantum Autoencoder for a noisy dataset containing zeros and ones, which can be seen below. \n",
762762
"\n",

qiskit_machine_learning/algorithms/classifiers/neural_network_classifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This code is part of a Qiskit project.
22
#
3-
# (C) Copyright IBM 2021, 2024.
3+
# (C) Copyright IBM 2021, 2025.
44
#
55
# This code is licensed under the Apache License, Version 2.0. You may
66
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -55,7 +55,7 @@ def __init__(
5555
):
5656
"""
5757
Args:
58-
neural_network: An instance of an quantum neural network. If the neural network has a
58+
neural_network: An instance of a quantum neural network. If the neural network has a
5959
one-dimensional output, i.e., `neural_network.output_shape=(1,)`, then it is
6060
expected to return values in [-1, +1] and it can only be used for binary
6161
classification. If the output is multi-dimensional, it is assumed that the result

qiskit_machine_learning/algorithms/objective_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This code is part of a Qiskit project.
22
#
3-
# (C) Copyright IBM 2021, 2024.
3+
# (C) Copyright IBM 2021, 2025.
44
#
55
# This code is licensed under the Apache License, Version 2.0. You may
66
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -46,7 +46,7 @@ def __init__(
4646
Args:
4747
X: The input data.
4848
y: The target values.
49-
neural_network: An instance of an quantum neural network to be used by this
49+
neural_network: An instance of a quantum neural network to be used by this
5050
objective function.
5151
loss: A target loss function to be used in training.
5252
"""

qiskit_machine_learning/kernels/trainable_kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This code is part of a Qiskit project.
22
#
3-
# (C) Copyright IBM 2022, 2023.
3+
# (C) Copyright IBM 2022, 2025.
44
#
55
# This code is licensed under the Apache License, Version 2.0. You may
66
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -71,7 +71,7 @@ def assign_training_parameters(
7171
if key not in self._training_parameters:
7272
raise ValueError(
7373
f"Parameter {key} is not a trainable parameter of the feature map and "
74-
f"thus cannot be bound. Make sure {key} is provided in the the trainable "
74+
f"thus cannot be bound. Make sure {key} is provided in the trainable "
7575
"parameters when initializing the kernel."
7676
)
7777
self._parameter_dict[key] = parameter_values[key]

qiskit_machine_learning/neural_networks/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This code is part of a Qiskit project.
22
#
3-
# (C) Copyright IBM 2019, 2024.
3+
# (C) Copyright IBM 2019, 2025.
44
#
55
# This code is licensed under the Apache License, Version 2.0. You may
66
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -14,7 +14,7 @@
1414
Quantum neural networks (:mod:`qiskit_machine_learning.neural_networks`)
1515
========================================================================
1616
17-
A neural network is a parametrized network which may be defined as a artificial
17+
A neural network is a parametrized network which may be defined as an artificial
1818
neural network - classical neural network - or as parametrized quantum circuits
1919
- quantum neural network. Furthermore, neural networks can be defined with respect
2020
to a discriminative or generative task.

qiskit_machine_learning/utils/adjust_num_qubits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def derive_num_qubits_feature_map_ansatz(
5959
or ansatz. Both the feature map and ansatz in this case must have the same number of qubits.
6060
If the number of qubits of the feature map is not the same as the number of qubits of
6161
the ansatz, an error is raised. If only one of the feature map and ansatz are ``None``, then
62-
:meth:`~qiskit.circuit.library.zz_feature_map` or :class:`~qiskit.circuit.library.rea_amplitudes`
62+
:meth:`~qiskit.circuit.library.zz_feature_map` or :class:`~qiskit.circuit.library.real_amplitudes`
6363
are created respectively.
6464
6565
If all the parameters are none an error is raised.
@@ -83,7 +83,7 @@ def derive_num_qubits_feature_map_ansatz(
8383
issue_deprecation_msg(
8484
msg="Using BlueprintCircuit based classes is deprecated",
8585
version="0.9.0",
86-
remedy="Use QnnCircuit (instead) of QNNCircuit or is you "
86+
remedy="Use QnnCircuit (instead) of QNNCircuit or if you "
8787
"are using this method directly set use_methods to True. "
8888
"When using methods later adjustment of the number of qubits is not "
8989
"possible and if not as circuits based on BlueprintCircuit, "

0 commit comments

Comments
 (0)