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

Commit 82188f8

Browse files
authored
Merge pull request #804 from mrossinek/minor-fixes-p6
Minor fixes - Part 6 of 8
2 parents 8a47853 + 1a86d6d commit 82188f8

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

qiskit/advanced/terra/2_operators_overview.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"\n",
735735
"Note that the previous compose requires that the total output dimension of the first operator $A$ is equal to total input dimension of the composed operator $B$ (and similarly, the output dimension of $B$ must be equal to the input dimension of $A$ when composing with `front=True`).\n",
736736
"\n",
737-
"We can also compose a smaller operator with a selection of subsystems on a larger operator using the `qargs` kwarg of `compose`, either with or without `front=True`. In this case, the relevant input and output dimenions of the subsystems being composed must match. *Note that the smaller operator must always be the argument of `compose` method.*\n",
737+
"We can also compose a smaller operator with a selection of subsystems on a larger operator using the `qargs` kwarg of `compose`, either with or without `front=True`. In this case, the relevant input and output dimensions of the subsystems being composed must match. *Note that the smaller operator must always be the argument of `compose` method.*\n",
738738
"\n",
739739
"For example, to compose a two-qubit gate with a three-qubit Operator:"
740740
]

qiskit/advanced/terra/4_transpiler_passes_and_passmanager.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"source": [
2828
"A central component of Qiskit Terra is the transpiler, which is designed for modularity and extensibility. The goal is to be able to easily write new circuit transformations (known as transpiler **passes**), and combine them with other existing passes. Which passes are chained together and in which order has a major effect on the final outcome. This pipeline is determined by a **pass manager**, which schedules the passes and also allows passes to communicate with each other by providing a shared space. In this way, the transpiler opens up the door for research into aggressive optimization of quantum circuits.\n",
2929
"\n",
30-
"In this notebook, we look at the built-in passes, howto use the pass manager, and develop a simple custom transpiler pass. In order to do the latter, we first need to introduce the internal representation of quantum circuits in Qiskit, in the form of a Directed Acyclic Graph, or **DAG**. Then, we illustrate a simple swap mapper pass, which transforms an input circuit to be compatible with a limited-connectivity quantum device."
30+
"In this notebook, we look at the built-in passes, how to use the pass manager, and develop a simple custom transpiler pass. In order to do the latter, we first need to introduce the internal representation of quantum circuits in Qiskit, in the form of a Directed Acyclic Graph, or **DAG**. Then, we illustrate a simple swap mapper pass, which transforms an input circuit to be compatible with a limited-connectivity quantum device."
3131
]
3232
},
3333
{
@@ -203,7 +203,7 @@
203203
"\n",
204204
"There can be passes that do the same job, but in different ways. For example, the ``TrivialLayout``, ``DenseLayout`` and ``NoiseAdaptiveLayout`` all choose a layout (binding of virtual qubits to physical qubits), but use different algorithms and objectives. Similarly, the ``BasicSwap``, ``LookaheadSwap`` and ``StochasticSwap`` all insert swaps to make the circuit compatible with the coupling map. The modularity of the transpiler allows plug-and-play replacements for each pass.\n",
205205
"\n",
206-
"Below, we show the swapper passes all applied to the same circuit, to transform it to match a linear chain topology. You can see differences in performance, where the StochasticSwap is clearly the best. However, this can vary depending on the input circuit."
206+
"Below, we show the swapper passes all applied to the same circuit, to transform it to match a linear chain topology. You can see differences in performance, where the ``StochasticSwap`` is clearly the best. However, this can vary depending on the input circuit."
207207
]
208208
},
209209
{

qiskit/advanced/terra/5_pulse_schedules.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"cell_type": "markdown",
139139
"metadata": {},
140140
"source": [
141-
"Channels can be checked for equivalency. This check is based on the channel index as every channel corresponds to a unique device channel."
141+
"Channels can be checked for equivalence. This check is based on the channel index as every channel corresponds to a unique device channel."
142142
]
143143
},
144144
{
@@ -231,7 +231,7 @@
231231
"The fundamental commands for the `PulseChannel` are:\n",
232232
"- `SamplePulse`: A pulse specified as a complex array of samples to be output out on the corresponding channel. Each pulse sample corresponds to a timestep of unit `dt` on the backend.\n",
233233
"- `FrameChange`: A persistent framechange of the phase of all future pulses on the corresponding channel. `Framechange`s have zero duration on the backend.\n",
234-
"- `PersistentValue`: A pulse that will holds its value until the next pulse on the corresponding channel. `PersistentValue` pulses will have variable duration on the backend as they depend on subsequent commands."
234+
"- `PersistentValue`: A pulse that will hold its value until the next pulse on the corresponding channel. `PersistentValue` pulses will have variable duration on the backend as they depend on subsequent commands."
235235
]
236236
},
237237
{
@@ -419,7 +419,7 @@
419419
"cell_type": "markdown",
420420
"metadata": {},
421421
"source": [
422-
"Certain instructions such as the `AcquireInstruction` accept multiple channels. In this case `AcquireInstruction` accepts up to three lists of the same size. These are lists of `AcquireChannel`s, `MemorySlot`s and `RegisterSlot`s. This allows the acquisition, kerneling and discrimination of multiple qubit to be combined and the output of a given channel to directed to the desired storage location."
422+
"Certain instructions such as the `AcquireInstruction` accept multiple channels. In this case `AcquireInstruction` accepts up to three lists of the same size. These are lists of `AcquireChannel`s, `MemorySlot`s and `RegisterSlot`s. This allows the acquisition, kerneling and discrimination of multiple qubits to be combined and the output of a given channel to be directed to the desired storage location."
423423
]
424424
},
425425
{
@@ -614,7 +614,7 @@
614614
"metadata": {},
615615
"source": [
616616
"## Schedules\n",
617-
"Pulse schedules are made by scheduling `Instruction`s. The `Schedule` may be viewed as a container for `Instruction`s and `Schedule`s shifted in time. In this way a simple `Schedule`s may be treated as a building blocks for more complicated `Schedule`s. "
617+
"Pulse schedules are made by scheduling `Instruction`s. The `Schedule` may be viewed as a container for `Instruction`s and `Schedule`s shifted in time. In this way a simple `Schedule` may be treated as a building block for more complicated `Schedule`s. "
618618
]
619619
},
620620
{
@@ -800,7 +800,7 @@
800800
"\n",
801801
"As the `Schedule` for the above methods emulate numeric types this enables a simple way of construction composite pulse schedules.\n",
802802
"\n",
803-
"Below we construct two equivalent schedules one with the syntactic sugar and one without"
803+
"Below we construct two equivalent schedules one with the syntactic sugar and one without."
804804
]
805805
},
806806
{
@@ -875,7 +875,7 @@
875875
"There are three (integer) measurement pulse levels (`meas_levels`) for pulse outputs which are triggered by `Acquire` commands and stored into the desired `MemorySlots`:\n",
876876
"- Measurement level 0: Return the sampled measurement output from the `AcquireChannel` after mixing down with the measurement stimulus LO. There will be a large amount of data associated with measurement level.\n",
877877
"- Measurement level 1: Return the data after the application of a user specified (or default if not specified) kernel.\n",
878-
"- Measurement level 2: Return the discriminated counts after the application of a measurement kernel and discriminator. This corresponds to the measurement output of a quantum circuit. See the [circuits notebook](quantum_circuits.ipynb) for more information.\n",
878+
"- Measurement level 2: Return the discriminated counts after the application of a measurement kernel and discriminator. This corresponds to the measurement output of a quantum circuit. See the [circuits notebook](../../fundamentals/4_quantum_circuit_properties.ipynb) for more information.\n",
879879
"\n",
880880
"For measurement level 0 and 1 there is another supported measurement result post-processing modifier, `meas_return`:\n",
881881
"- `single`: Return the results for each individual shot.\n",
@@ -932,7 +932,7 @@
932932
"cell_type": "markdown",
933933
"metadata": {},
934934
"source": [
935-
"For measurement levels 2, results are extracted in the same way as for circuit results. To get individual shot counts,"
935+
"For measurement level 2 results are extracted in the same way as for circuit results. To get individual shot counts,"
936936
]
937937
},
938938
{

qiskit/advanced/terra/6_creating_a_provider.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"source": [
111111
"# Creating a job class\n",
112112
"\n",
113-
"A job class is a necessary building block when creating a provider. It allows to synchronize different executions of the simulator. Since this is out of the scope of this tutorial, we define a degenerated job, which effectively does nothing. See [The IBM Q Provider](../basics/the_ibmq_provider.ipynb) for relevant information."
113+
"A job class is a necessary building block when creating a provider. It allows to synchronize different executions of the simulator. Since this is out of the scope of this tutorial, we define a degenerated job, which effectively does nothing. See [The IBM Q Provider](../../fundamentals/3_the_ibmq_account.ipynb#The-Provider-) for relevant information."
114114
]
115115
},
116116
{
@@ -318,7 +318,7 @@
318318
"cell_type": "markdown",
319319
"metadata": {},
320320
"source": [
321-
"Create a provider inherited from ``BaseProvider`` and minimally implement the ``backends`` method for retreiving a list of backends."
321+
"Create a provider inherited from ``BaseProvider`` and minimally implement the ``backends`` method for retrieving a list of backends."
322322
]
323323
},
324324
{

0 commit comments

Comments
 (0)