Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 1748699

Browse files
authored
Fix misc. typos and hyphenate "[number]-qubit". (#859)
* Hyphenate "[number]-qubit" when a compound adjective, for clarity and consistency. (To be completely consistent, maybe all instances of "two-qubit" should be changed to "2-qubit" and so on, i.e., numerals should always be used.) * Fix miscellaneous minor typos. * s/if/is in 2_plotting_data_in_qiskit.ipynb. * s/Lets/Let's in 4_quantum_circuit_properties.ipynb. * s/exponential/exponentially and s/dimensions/dimension in 7_summary_of_quantum_operations.ipynb. * s/Non unitary/Non-unitary in 7_summary_of_quantum_operations.ipynb. * s/presrved/preserved in 1_advanced_circuits.ipynb. * s/it's/its and s/Stadnard/Standard in 4_transpiler_passes_and_passmanager.ipynb. * Fix typo s/index channel/channel index and s/who's/whose in qiskit/advanced/terra/5_pulse_schedules.ipynb. * Fix typo s/the the/the/g.
1 parent bd9174e commit 1748699

14 files changed

Lines changed: 25 additions & 25 deletions

qiskit/advanced/aer/1_aer_provider.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
"* The initial statevector must be a valid quantum state $|\\langle\\psi|\\psi\\rangle|=1$. If not, an exception will be raised. \n",
220220
"* The simulator supports this option directly for efficiency, but it can also be unrolled to standard gates for execution on actual devices.\n",
221221
"\n",
222-
"We now demonstrate this functionality by setting the simulator to be initialized in the the final Bell-state of the previous example:"
222+
"We now demonstrate this functionality by setting the simulator to be initialized in the final Bell-state of the previous example:"
223223
]
224224
},
225225
{

qiskit/advanced/aer/4_custom_gate_noise.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@
425425
"source": [
426426
"### Noisy circuit execution\n",
427427
"\n",
428-
"Finally, let's now simulate it with our custom noise model. Since there is a small amplitude damping error on the two qubit gates we expect small additional peaks for the 01 and 10 outcome probabilities."
428+
"Finally, let's now simulate it with our custom noise model. Since there is a small amplitude damping error on the two-qubit gates we expect small additional peaks for the 01 and 10 outcome probabilities."
429429
]
430430
},
431431
{

qiskit/advanced/aqua/chemistry/dissociation_profile_of_molecule.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"source": [
3434
"### Introduction\n",
3535
"\n",
36-
"One of the most compelling possibilities of quantum computation is the the simulation of other quantum systems. Quantum simulation of quantum systems encompasses a wide range of tasks, including most significantly:\n",
36+
"One of the most compelling possibilities of quantum computation is the simulation of other quantum systems. Quantum simulation of quantum systems encompasses a wide range of tasks, including most significantly:\n",
3737
" \n",
3838
"1. Simulation of the time evolution of quantum systems.\n",
3939
"\n",

qiskit/advanced/aqua/linear_systems_of_equations.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
"cell_type": "markdown",
360360
"metadata": {},
361361
"source": [
362-
"Compared to the the first example, the circuit depth is increased approximately by a factor of 6"
362+
"Compared to the first example, the circuit depth is increased approximately by a factor of 6"
363363
]
364364
},
365365
{

qiskit/advanced/ignis/1b_calibrating_a_two_qubit_gate.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"source": [
23-
"# Calibrating a two qubit gate"
23+
"# Calibrating a two-qubit gate"
2424
]
2525
},
2626
{

qiskit/advanced/ignis/5a_randomized_benchmarking.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
"cell_type": "markdown",
629629
"metadata": {},
630630
"source": [
631-
"The **two qubit Clifford gate error** gives measured errors in the basis gates that were used to construct the Clifford. \n",
631+
"The **two-qubit Clifford gate error** gives measured errors in the basis gates that were used to construct the Clifford. \n",
632632
"It assumes that the error in the underlying gates is depolarizing. It outputs the error per a 2-qubit Clifford.\n",
633633
"\n",
634634
"The input to this function is:\n",
@@ -800,7 +800,7 @@
800800
"cell_type": "markdown",
801801
"metadata": {},
802802
"source": [
803-
"We count again the number of **gates per Clifford** as before, and calculate the **two qubit Clifford gate error**, using the predicted primitive gate errors from the coherence limit."
803+
"We count again the number of **gates per Clifford** as before, and calculate the **two-qubit Clifford gate error**, using the predicted primitive gate errors from the coherence limit."
804804
]
805805
},
806806
{

qiskit/advanced/ignis/6a_state_tomography.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@
463463
"cell_type": "markdown",
464464
"metadata": {},
465465
"source": [
466-
"In this example, we have a three qubit system where one of the qubits will be an ancilla for performing state tomography, i.e. only perform tomography when the third qubit is in the state \"1\". The circuit is setup in such a way that after conditional tomography we will get a Bell state on the first two qubits.\n",
466+
"In this example, we have a three-qubit system where one of the qubits will be an ancilla for performing state tomography, i.e. only perform tomography when the third qubit is in the state \"1\". The circuit is setup in such a way that after conditional tomography we will get a Bell state on the first two qubits.\n",
467467
"\n",
468468
"First make a 3Q GHZ state with no classical measurements."
469469
]

qiskit/advanced/terra/1_advanced_circuits.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@
678678
" backend=BasicAer.get_backend('qasm_simulator'),\n",
679679
" parameter_binds=[{theta: theta_val} for theta_val in theta_range])\n",
680680
"\n",
681-
"# Note: Bind labels are not presrved in executed experiments.\n",
681+
"# Note: Bind labels are not preserved in executed experiments.\n",
682682
"counts = [job.result().get_counts(i) for i in range(len(job.result().results))]\n"
683683
]
684684
},

qiskit/advanced/terra/4_transpiler_passes_and_passmanager.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@
11201120
"source": [
11211121
"## Transpiler Logging <a name='logging'></a>\n",
11221122
"\n",
1123-
"Due to the complexity of the internal operations that the transpiler is performing it's likely that you'll end up in a situation where you'd like to debug an issue or just understand more of what is happening inside the transpiler when you call it. To facilitate this the transpiler emits log messages as part of it's normal operation. This logging uses the Python standard library `logging` module to emit the log messages. Python's standard logging was used because it allows Qiskit-Terra's logging to integrate in a standard way with other applications and libraries.\n",
1123+
"Due to the complexity of the internal operations that the transpiler is performing it's likely that you'll end up in a situation where you'd like to debug an issue or just understand more of what is happening inside the transpiler when you call it. To facilitate this the transpiler emits log messages as part of its normal operation. This logging uses the Python standard library `logging` module to emit the log messages. Python's standard logging was used because it allows Qiskit-Terra's logging to integrate in a standard way with other applications and libraries.\n",
11241124
"\n",
11251125
"For a more thorough introduction to Python logging refer to the [official documentation](https://docs.python.org/3/library/logging.html) and the tutorials and cookbook linked off of there."
11261126
]
@@ -1140,7 +1140,7 @@
11401140
"source": [
11411141
"### Configuring Python Standard Library Logging\n",
11421142
"\n",
1143-
"By default Python Stadnard Logging only prints log messages at the `WARNING`, `ERROR`, or `CRITICAL` log levels.\n",
1143+
"By default Python Standard Logging only prints log messages at the `WARNING`, `ERROR`, or `CRITICAL` log levels.\n",
11441144
"Since none of the logs emitted by the transpiler use these log levels (they're all informative) you need to configure logging.\n",
11451145
"\n",
11461146
"The simplest way to do this is to just run:"

qiskit/advanced/terra/5_pulse_schedules.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"As all channels correspond to physical channels on a device, they have an `index` which specifies their corresponding device channel.\n",
7575
"\n",
7676
"The fundamental channel types are: \n",
77-
"- `DriveChannel`: Qubit drive channel. The index channel corresponds to the system qubit index.\n",
77+
"- `DriveChannel`: Qubit drive channel. The channel index corresponds to the system qubit index.\n",
7878
"- `MeasureChannel`: Qubit stimulus channel. The channel index corresponds to the system qubit index.\n",
7979
"- `ControlChannel`: Arbitrary control channel with action specified by Hamiltonian provided by device. The function of this channel must be extracted from the system Hamiltonian.\n",
8080
"- `AcquireChannel`: Qubit acquisition channel. The channel index corresponds to the system qubit index.\n",
@@ -340,7 +340,7 @@
340340
"cell_type": "markdown",
341341
"metadata": {},
342342
"source": [
343-
"All `Command`s have a `duration` attribute. This may be fixed as for the case of the `FrameChange` having zero duration, or dependent on the command as is the case for the `SamplePulse` who's duration is defined by the number of samples in the pulse."
343+
"All `Command`s have a `duration` attribute. This may be fixed as for the case of the `FrameChange` having zero duration, or dependent on the command as is the case for the `SamplePulse` whose duration is defined by the number of samples in the pulse."
344344
]
345345
},
346346
{
@@ -442,7 +442,7 @@
442442
"cell_type": "markdown",
443443
"metadata": {},
444444
"source": [
445-
"`Instructions` can also be plotted"
445+
"`Instructions` can also be plotted."
446446
]
447447
},
448448
{

0 commit comments

Comments
 (0)