diff --git a/docs/configuration.rst b/docs/configuration.rst index dfcd7be24bec..600f8cc90db2 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -26,7 +26,7 @@ For example: num_processes = 15 By default this file lives in ``~/.qiskit/settings.conf`` but the path used -can be overriden with the ``QISKIT_SETTINGS`` environment variable. If +can be overridden with the ``QISKIT_SETTINGS`` environment variable. If ``QISKIT_SETTINGS`` is set its value will used as the path to the user config file. @@ -61,12 +61,12 @@ Available options: `Python multiprocessing `__ is enabled for operations that support running in parallel (for example transpilation of multiple :class:`~qiskit.circuit.QuantumCircuit` objects). - The default setting in the user config file can be overriden by + The default setting in the user config file can be overridden by the ``QISKIT_PARALLEL`` environment variable. * ``num_processes``: This option takes an integer value (> 0) that is used to specify the maximum number of parallel processes to launch for parallel operations if parallel execution is enabled. The default setting in the - user config file can be overriden by the ``QISKIT_NUM_PROCS`` environment + user config file can be overridden by the ``QISKIT_NUM_PROCS`` environment variable. Environment Variables diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 17991694bb4f..f9d7aa1ac98a 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -28253,7 +28253,7 @@ New Features for users who are only running qiskit-terra (or just not qiskit-aer and/or qiskit-ibmq-provider) and the warnings are not an indication of a potential packaging problem. If the user config file is set to disable the warnings - this can be overriden by setting the ``QISKIT_SUPPRESS_PACKAGING_WARNINGS`` + this can be overridden by setting the ``QISKIT_SUPPRESS_PACKAGING_WARNINGS`` to ``N`` or ``n`` - :func:`qiskit.compiler.transpile()` has two new kwargs, ``layout_method`` diff --git a/qiskit/circuit/controlflow/if_else.py b/qiskit/circuit/controlflow/if_else.py index 856e16862f36..60d18cacbbc5 100644 --- a/qiskit/circuit/controlflow/if_else.py +++ b/qiskit/circuit/controlflow/if_else.py @@ -148,7 +148,7 @@ def replace_blocks(self, blocks: Iterable[QuantumCircuit]) -> "IfElseOp": Args: blocks: Iterable of circuits for "if" and "else" condition. If there is no "else" - circuit it may be set to None or ommited. + circuit it may be set to None or omitted. Returns: New IfElseOp with replaced blocks. diff --git a/qiskit/circuit/library/data_preparation/pauli_feature_map.py b/qiskit/circuit/library/data_preparation/pauli_feature_map.py index 932351bc8691..b05287ca049f 100644 --- a/qiskit/circuit/library/data_preparation/pauli_feature_map.py +++ b/qiskit/circuit/library/data_preparation/pauli_feature_map.py @@ -160,7 +160,7 @@ def __init__( def _parameter_generator( self, rep: int, block: int, indices: List[int] ) -> Optional[List[Parameter]]: - """If certain blocks should use certain parameters this method can be overriden.""" + """If certain blocks should use certain parameters this method can be overridden.""" params = [self.ordered_parameters[i] for i in indices] return params diff --git a/qiskit/circuit/library/n_local/n_local.py b/qiskit/circuit/library/n_local/n_local.py index aca3ea65bb3b..130fe2d212c8 100644 --- a/qiskit/circuit/library/n_local/n_local.py +++ b/qiskit/circuit/library/n_local/n_local.py @@ -961,7 +961,7 @@ def _build(self) -> None: # pylint: disable=unused-argument def _parameter_generator(self, rep: int, block: int, indices: list[int]) -> Parameter | None: - """If certain blocks should use certain parameters this method can be overriden.""" + """If certain blocks should use certain parameters this method can be overridden.""" return None diff --git a/qiskit/circuit/parametertable.py b/qiskit/circuit/parametertable.py index d3318b0b6c3c..3d127de8649f 100644 --- a/qiskit/circuit/parametertable.py +++ b/qiskit/circuit/parametertable.py @@ -18,7 +18,7 @@ class ParameterReferences(MutableSet): """A set of instruction parameter slot references. Items are expected in the form ``(instruction, param_index)``. Membership - testing is overriden such that items that are otherwise value-wise equal + testing is overridden such that items that are otherwise value-wise equal are still considered distinct if their ``instruction``\\ s are referentially distinct. """ diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py index 219cd104cab5..f0ed85208435 100644 --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -352,7 +352,7 @@ def from_instructions( @property def layout(self) -> Optional[TranspileLayout]: - r"""Return any associated layout information anout the circuit + r"""Return any associated layout information about the circuit This attribute contains an optional :class:`~.TranspileLayout` object. This is typically set on the output from :func:`~.transpile` @@ -2591,7 +2591,7 @@ def parameters(self) -> ParameterView: >>> circuit.parameters # sorted alphabetically! ParameterView([Parameter(a), Parameter(b), Parameter(elephant)]) - Bear in mind that alphabetical sorting might be unituitive when it comes to numbers. + Bear in mind that alphabetical sorting might be unintuitive when it comes to numbers. The literal "10" comes before "2" in strict alphabetical sorting. .. code-block:: python diff --git a/qiskit/dagcircuit/dagcircuit.py b/qiskit/dagcircuit/dagcircuit.py index 012b43db66ee..2b3d94d768bb 100644 --- a/qiskit/dagcircuit/dagcircuit.py +++ b/qiskit/dagcircuit/dagcircuit.py @@ -914,7 +914,7 @@ def size(self, *, recurse: bool = False): def depth(self, *, recurse: bool = False): """Return the circuit depth. If there is control flow present, this count may only be an - estimate, as the complete control-flow path cannot be staticly known. + estimate, as the complete control-flow path cannot be statically known. Args: recurse: if ``True``, then recurse into control-flow operations. For loops diff --git a/qiskit/primitives/backend_estimator.py b/qiskit/primitives/backend_estimator.py index 40c77f9e9a6b..d4c733b5133d 100644 --- a/qiskit/primitives/backend_estimator.py +++ b/qiskit/primitives/backend_estimator.py @@ -108,7 +108,7 @@ def __init__( bound_pass_manager: PassManager | None = None, skip_transpilation: bool = False, ): - """Initalize a new BackendEstimator instance + """Initialize a new BackendEstimator instance Args: backend: Required: the backend to run the primitive on diff --git a/qiskit/providers/__init__.py b/qiskit/providers/__init__.py index ded070bc340f..de1f97925d44 100644 --- a/qiskit/providers/__init__.py +++ b/qiskit/providers/__init__.py @@ -626,7 +626,7 @@ def status(self): the :mod:`qiskit.primitives` module is to explicitly enable this as the primitive objects are higher level abstractions to produce processed higher level outputs (such as probability distributions and expectation values) -that abstract away the mechanics of getting the best result efficienctly, to +that abstract away the mechanics of getting the best result efficiently, to concentrate on higher level applications using these outputs. For example, if your backends were well suited to leverage diff --git a/qiskit/providers/options.py b/qiskit/providers/options.py index b3c83a0dbdf2..7a5b7a260354 100644 --- a/qiskit/providers/options.py +++ b/qiskit/providers/options.py @@ -48,7 +48,7 @@ class Options(Mapping): Runtime validators can be registered. See `set_validator`. Updates through `update_options` and indexing (`__setitem__`) validate - the new value before peforming the update and raise `ValueError` if + the new value before performing the update and raise `ValueError` if the new value is invalid. >>> options.set_validator("opt1", (1, 5)) @@ -191,7 +191,7 @@ def set_validator(self, field, validator_value): In this case whenever the ``"shots"`` option is updated by the user it will enforce that the value is >=1 and <=4096. A ``ValueError`` will be raised if it's outside those bounds. If a validator is already present - for the specified field it will be silently overriden. + for the specified field it will be silently overridden. Args: field (str): The field name to set the validator on diff --git a/qiskit/qasm2/__init__.py b/qiskit/qasm2/__init__.py index 061a5dffe284..2bd527066d5d 100644 --- a/qiskit/qasm2/__init__.py +++ b/qiskit/qasm2/__init__.py @@ -280,10 +280,10 @@ def from_qasm_str(qasm_str: str): The four-parameter version of a controlled-:math:`U`, corresponding to :class:`.CUGate`. ``rxx(theta) a, b`` - Two-qubit rotation arond the :math:`XX` axis, corresponding to :class:`.RXXGate`. + Two-qubit rotation around the :math:`XX` axis, corresponding to :class:`.RXXGate`. ``rzz(theta) a, b`` - Two-qubit rotation arond the :math:`ZZ` axis, corresponding to :class:`.RZZGate`. + Two-qubit rotation around the :math:`ZZ` axis, corresponding to :class:`.RZZGate`. ``rccx a, b, c`` The double-controlled :math:`X` gate, but with relative phase differences over the standard @@ -442,7 +442,7 @@ def loads( Args: string: The OpenQASM 2 program in a string. - include_path: order of directories to search when evluating ``include`` statements. + include_path: order of directories to search when evaluating ``include`` statements. custom_instructions: any custom constructors that should be used for specific gates or opaque instructions during circuit construction. See :ref:`qasm2-custom-instructions` for more. @@ -483,7 +483,7 @@ def load( Args: filename: The OpenQASM 2 program in a string. - include_path: order of directories to search when evluating ``include`` statements. + include_path: order of directories to search when evaluating ``include`` statements. include_input_directory: Whether to add the directory of the input file to the ``include_path``, and if so, whether to *append* it to search last, or *prepend* it to search first. Pass ``None`` to suppress adding this directory entirely. diff --git a/qiskit/qpy/__init__.py b/qiskit/qpy/__init__.py index eccb6c553819..d7c04ab5eeef 100644 --- a/qiskit/qpy/__init__.py +++ b/qiskit/qpy/__init__.py @@ -134,7 +134,7 @@ Version 9 ========= -Version 9 addds support for classical :class:`~.expr.Expr` nodes and their associated +Version 9 adds support for classical :class:`~.expr.Expr` nodes and their associated :class:`~.types.Type`\\ s. @@ -321,7 +321,7 @@ bytes for a ``utf8`` encoded string for the register name. Following the initial layout there is ``input_mapping_size`` array of -``uint32_t`` integers representing the positions of the phyiscal bit from the +``uint32_t`` integers representing the positions of the physical bit from the initial layout. This enables constructing a list of virtual bits where the array index is its input mapping position. @@ -497,7 +497,7 @@ - ``s``: :class:`~.AlignSequential` - ``e``: :class:`~.AlignEquispaced` -Note that :class:`~.AlignFunc` context is not supported becasue of the callback function +Note that :class:`~.AlignFunc` context is not supported because of the callback function stored in the context parameters. .. _qpy_schedule_instructions: @@ -511,7 +511,7 @@ followed by the :ref:`qpy_sequence` block representing the instruction :attr:`~qiskit.pulse.instructions.Instruction.operands`. Note that the data structure of pulse :class:`~qiskit.pulse.instructions.Instruction` -is unified so that instance can be uniquely determied by the class and a tuple of operands. +is unified so that instance can be uniquely determined by the class and a tuple of operands. The mapping of type char to the instruction subclass is defined as follows: - ``a``: :class:`~qiskit.pulse.instructions.Acquire` instruction @@ -667,7 +667,7 @@ the gate name, ``num_qubits`` length of integers representing a sequence of qubits, and ``num_params`` length of INSTRUCTION_PARAM payload for parameters associated to the custom instruction. -The ``type`` indicates the class of pulse program which is either, in pricinple, +The ``type`` indicates the class of pulse program which is either, in principle, :class:`~.ScheduleBlock` or :class:`~.Schedule`. As of QPY Version 5, only :class:`~.ScheduleBlock` payload is supported. Finally, :ref:`qpy_schedule_block` payload is packed for each CALIBRATION_DEF entry. @@ -791,7 +791,7 @@ SEQUENCE -------- -A SEQUENCE is a reprentation of a arbitrary sequence object. As sequence are just fixed length +A SEQUENCE is a representation of an arbitrary sequence object. As sequence are just fixed length containers of arbitrary python objects their QPY can't fully represent any sequence, but as long as the contents in a sequence are other QPY serializable types for the INSTRUCTION_PARAM payload the ``sequence`` object can be serialized. diff --git a/qiskit/quantum_info/operators/custom_iterator.py b/qiskit/quantum_info/operators/custom_iterator.py index 05813cf441e0..c1e365d156aa 100644 --- a/qiskit/quantum_info/operators/custom_iterator.py +++ b/qiskit/quantum_info/operators/custom_iterator.py @@ -27,7 +27,7 @@ def __init__(self, obj): @abstractmethod def __getitem__(self, key): """Get next item""" - # This method should be overriden for lazy conversion of + # This method should be overridden for lazy conversion of # iterator only at a given key value pass diff --git a/qiskit/quantum_info/operators/symplectic/clifford.py b/qiskit/quantum_info/operators/symplectic/clifford.py index a628d7cf46bf..b17c29df4665 100644 --- a/qiskit/quantum_info/operators/symplectic/clifford.py +++ b/qiskit/quantum_info/operators/symplectic/clifford.py @@ -385,7 +385,7 @@ def destab_z(self, value): @property def destab_phase(self): - """Return phase of destaibilizer with boolean representation.""" + """Return phase of destabilizer with boolean representation.""" return self.tableau[: self.num_qubits, -1] @destab_phase.setter @@ -421,7 +421,7 @@ def stab_z(self, value): @property def stab_phase(self): - """Return phase of stablizer with boolean representation.""" + """Return phase of stabilizer with boolean representation.""" return self.tableau[self.num_qubits :, -1] @stab_phase.setter @@ -874,8 +874,8 @@ def to_labels(self, array: bool = False, mode: Literal["S", "D", "B"] = "B"): Args: array (bool): return a Numpy array if True, otherwise return a list (Default: False). - mode (Literal["S", "D", "B"]): return both stabilizer and destablizer if "B", - return only stabilizer if "S" and return only destablizer if "D". + mode (Literal["S", "D", "B"]): return both stabilizer and destabilizer if "B", + return only stabilizer if "S" and return only destabilizer if "D". Returns: list or array: The rows of the StabilizerTable in label form. diff --git a/qiskit/quantum_info/states/stabilizerstate.py b/qiskit/quantum_info/states/stabilizerstate.py index db5ca720b666..7ba0698500aa 100644 --- a/qiskit/quantum_info/states/stabilizerstate.py +++ b/qiskit/quantum_info/states/stabilizerstate.py @@ -151,7 +151,7 @@ def conjugate(self): return ret def tensor(self, other: StabilizerState) -> StabilizerState: - """Return the tensor product stabilzier state self ⊗ other. + """Return the tensor product stabilizer state self ⊗ other. Args: other (StabilizerState): a stabilizer state object. @@ -169,7 +169,7 @@ def tensor(self, other: StabilizerState) -> StabilizerState: return ret def expand(self, other: StabilizerState) -> StabilizerState: - """Return the tensor product stabilzier state other ⊗ self. + """Return the tensor product stabilizer state other ⊗ self. Args: other (StabilizerState): a stabilizer state object. diff --git a/qiskit/quantum_info/synthesis/two_qubit_decompose.py b/qiskit/quantum_info/synthesis/two_qubit_decompose.py index bfedd30de448..82088ae051f1 100644 --- a/qiskit/quantum_info/synthesis/two_qubit_decompose.py +++ b/qiskit/quantum_info/synthesis/two_qubit_decompose.py @@ -393,7 +393,7 @@ def circuit( def _weyl_gate(self, simplify, circ: QuantumCircuit, atol): """Appends Ud(a, b, c) to the circuit. - Can be overriden in subclasses for special cases""" + Can be overridden in subclasses for special cases""" if not simplify or abs(self.a) > atol: circ.rxx(-self.a * 2, 0, 1) if not simplify or abs(self.b) > atol: diff --git a/qiskit/result/mitigation/base_readout_mitigator.py b/qiskit/result/mitigation/base_readout_mitigator.py index fd2abad24d0d..f4ca398b73cf 100644 --- a/qiskit/result/mitigation/base_readout_mitigator.py +++ b/qiskit/result/mitigation/base_readout_mitigator.py @@ -43,7 +43,7 @@ def quasi_probabilities( be calculated as the sum of all counts. Returns: - QuasiDistibution: A dictionary containing pairs of [output, mean] where "output" + QuasiDistribution: A dictionary containing pairs of [output, mean] where "output" is the key in the dictionaries, which is the length-N bitstring of a measured standard basis state, and "mean" is the mean of non-zero quasi-probability estimates. diff --git a/qiskit/result/mitigation/correlated_readout_mitigator.py b/qiskit/result/mitigation/correlated_readout_mitigator.py index b98d71a308bb..e7f600f7cae2 100644 --- a/qiskit/result/mitigation/correlated_readout_mitigator.py +++ b/qiskit/result/mitigation/correlated_readout_mitigator.py @@ -145,7 +145,7 @@ def quasi_probabilities( be calculated as the sum of all counts. Returns: - QuasiDistibution: A dictionary containing pairs of [output, mean] where "output" + QuasiDistribution: A dictionary containing pairs of [output, mean] where "output" is the key in the dictionaries, which is the length-N bitstring of a measured standard basis state, and "mean" is the mean of non-zero quasi-probability estimates. diff --git a/qiskit/result/mitigation/local_readout_mitigator.py b/qiskit/result/mitigation/local_readout_mitigator.py index aaff4f53011e..228754733997 100644 --- a/qiskit/result/mitigation/local_readout_mitigator.py +++ b/qiskit/result/mitigation/local_readout_mitigator.py @@ -181,7 +181,7 @@ def quasi_probabilities( be calculated as the sum of all counts. Returns: - QuasiDistibution: A dictionary containing pairs of [output, mean] where "output" + QuasiDistribution: A dictionary containing pairs of [output, mean] where "output" is the key in the dictionaries, which is the length-N bitstring of a measured standard basis state, and "mean" is the mean of non-zero quasi-probability estimates. diff --git a/qiskit/synthesis/clifford/clifford_decompose_greedy.py b/qiskit/synthesis/clifford/clifford_decompose_greedy.py index b0d7f60c4736..184429040a23 100644 --- a/qiskit/synthesis/clifford/clifford_decompose_greedy.py +++ b/qiskit/synthesis/clifford/clifford_decompose_greedy.py @@ -36,7 +36,7 @@ def synth_clifford_greedy(clifford): greedy Clifford compiler that is described in Appendix A of Bravyi, Hu, Maslov and Shaydulin. - This method typically yields better CX cost compared to the Aaronson-Gottesma method. + This method typically yields better CX cost compared to the Aaronson-Gottesman method. Args: clifford (Clifford): a clifford operator. diff --git a/qiskit/synthesis/evolution/lie_trotter.py b/qiskit/synthesis/evolution/lie_trotter.py index 92bf6d7d5392..6766d8d2526f 100644 --- a/qiskit/synthesis/evolution/lie_trotter.py +++ b/qiskit/synthesis/evolution/lie_trotter.py @@ -64,7 +64,7 @@ def __init__( "chain", where next neighbor connections are used, or "fountain", where all qubits are connected to one. atomic_evolution: A function to construct the circuit for the evolution of single - Pauli string. Per default, a single Pauli evolution is decomopsed in a CX chain + Pauli string. Per default, a single Pauli evolution is decomposed in a CX chain and a single qubit Z rotation. """ super().__init__(1, reps, insert_barriers, cx_structure, atomic_evolution) diff --git a/qiskit/synthesis/evolution/product_formula.py b/qiskit/synthesis/evolution/product_formula.py index 76df50d82153..e57486cea887 100644 --- a/qiskit/synthesis/evolution/product_formula.py +++ b/qiskit/synthesis/evolution/product_formula.py @@ -47,7 +47,7 @@ def __init__( "chain", where next neighbor connections are used, or "fountain", where all qubits are connected to one. atomic_evolution: A function to construct the circuit for the evolution of single - Pauli string. Per default, a single Pauli evolution is decomopsed in a CX chain + Pauli string. Per default, a single Pauli evolution is decomposed in a CX chain and a single qubit Z rotation. """ super().__init__() diff --git a/qiskit/synthesis/evolution/qdrift.py b/qiskit/synthesis/evolution/qdrift.py index 6707fa2ec411..0637eae8dc1c 100644 --- a/qiskit/synthesis/evolution/qdrift.py +++ b/qiskit/synthesis/evolution/qdrift.py @@ -49,7 +49,7 @@ def __init__( "chain", where next neighbor connections are used, or "fountain", where all qubits are connected to one. atomic_evolution: A function to construct the circuit for the evolution of single - Pauli string. Per default, a single Pauli evolution is decomopsed in a CX chain + Pauli string. Per default, a single Pauli evolution is decomposed in a CX chain and a single qubit Z rotation. """ super().__init__(1, reps, insert_barriers, cx_structure, atomic_evolution) diff --git a/qiskit/synthesis/evolution/suzuki_trotter.py b/qiskit/synthesis/evolution/suzuki_trotter.py index cba416fa5fa3..b8dd766c3bcd 100644 --- a/qiskit/synthesis/evolution/suzuki_trotter.py +++ b/qiskit/synthesis/evolution/suzuki_trotter.py @@ -81,7 +81,7 @@ def __init__( where next neighbor connections are used, or "fountain", where all qubits are connected to one. atomic_evolution: A function to construct the circuit for the evolution of single - Pauli string. Per default, a single Pauli evolution is decomopsed in a CX chain + Pauli string. Per default, a single Pauli evolution is decomposed in a CX chain and a single qubit Z rotation. """ # TODO replace deprecation warning by the following error and add unit test for odd diff --git a/qiskit/transpiler/__init__.py b/qiskit/transpiler/__init__.py index d58ddd7d650a..8d4dd6b157ab 100644 --- a/qiskit/transpiler/__init__.py +++ b/qiskit/transpiler/__init__.py @@ -658,7 +658,7 @@ For the first stage there are 2 passes typically used for this: - :class:`~.VF2Layout`: Models layout selection as a subgraph isomorphism problem and tries - to find a subgraph of the connectivity graph that is isomporphic to the + to find a subgraph of the connectivity graph that is isomorphic to the graph of 2 qubit interactions in the circuit. If more than one isomorphic mapping is found a scoring heuristic is run to select the mapping which would result in the lowest average error when executing the circuit. diff --git a/qiskit/transpiler/passes/basis/unroll_3q_or_more.py b/qiskit/transpiler/passes/basis/unroll_3q_or_more.py index 5fb37112a7bb..ed6400dce94a 100644 --- a/qiskit/transpiler/passes/basis/unroll_3q_or_more.py +++ b/qiskit/transpiler/passes/basis/unroll_3q_or_more.py @@ -26,7 +26,7 @@ def __init__(self, target=None, basis_gates=None): """Initialize the Unroll3qOrMore pass Args: - target (Target): The target object reprsenting the compilation + target (Target): The target object representing the compilation target. If specified any multiqubit instructions in the circuit when the pass is run that are supported by the target device will be left in place. If both this and ``basis_gates`` diff --git a/qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py b/qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py index e9dcd0903d09..b3e3f27b89ef 100644 --- a/qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py +++ b/qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py @@ -33,7 +33,7 @@ class CollectMultiQBlocks(AnalysisPass): Some gates may not be present in any block (e.g. if the number of operands is greater than max_block_size) - A Disjont Set Union data structure (DSU) is used to maintain blocks as + A Disjoint Set Union data structure (DSU) is used to maintain blocks as gates are processed. This data structure points each qubit to a set at all times and the sets correspond to current blocks. These change over time and the data structure allows these changes to be done quickly. diff --git a/qiskit/transpiler/passes/optimization/crosstalk_adaptive_schedule.py b/qiskit/transpiler/passes/optimization/crosstalk_adaptive_schedule.py index 155338d3ad28..387bdc3ba4e0 100644 --- a/qiskit/transpiler/passes/optimization/crosstalk_adaptive_schedule.py +++ b/qiskit/transpiler/passes/optimization/crosstalk_adaptive_schedule.py @@ -224,7 +224,7 @@ def extract_dag_overlap_sets(self, dag): """ Gate A, B are overlapping if A is neither a descendant nor an ancestor of B. - Currenty overlaps (A,B) are considered when A is a 2q gate and + Currently overlaps (A,B) are considered when A is a 2q gate and B is either 2q or 1q gate. """ for gate in dag.two_qubit_ops(): diff --git a/qiskit/transpiler/passes/optimization/inverse_cancellation.py b/qiskit/transpiler/passes/optimization/inverse_cancellation.py index 7ec03a578322..35dae7d85f07 100644 --- a/qiskit/transpiler/passes/optimization/inverse_cancellation.py +++ b/qiskit/transpiler/passes/optimization/inverse_cancellation.py @@ -33,7 +33,7 @@ def __init__(self, gates_to_cancel: List[Union[Gate, Tuple[Gate, Gate]]]): Raises: TranspilerError: - Initalization raises an error when the input is not a self-inverse gate + Initialization raises an error when the input is not a self-inverse gate or a two-tuple of inverse gates. """ diff --git a/qiskit/transpiler/passes/scheduling/alignments/check_durations.py b/qiskit/transpiler/passes/scheduling/alignments/check_durations.py index b2cc90b0d152..818342c2277c 100644 --- a/qiskit/transpiler/passes/scheduling/alignments/check_durations.py +++ b/qiskit/transpiler/passes/scheduling/alignments/check_durations.py @@ -19,7 +19,7 @@ class InstructionDurationCheck(AnalysisPass): """Duration validation pass for reschedule. - This pass investigates the input quantum circuit and checks if the circuit requres + This pass investigates the input quantum circuit and checks if the circuit requires rescheduling for execution. Note that this pass can be triggered without scheduling. This pass only checks the duration of delay instructions and user defined pulse gates, which report duration values without pre-scheduling. diff --git a/qiskit/transpiler/passes/scheduling/padding/base_padding.py b/qiskit/transpiler/passes/scheduling/padding/base_padding.py index d38a0b0e8661..0c5078eb22a4 100644 --- a/qiskit/transpiler/passes/scheduling/padding/base_padding.py +++ b/qiskit/transpiler/passes/scheduling/padding/base_padding.py @@ -93,7 +93,7 @@ def run(self, dag: DAGCircuit): # Update start time dictionary for the new_dag. # This information may be used for further scheduling tasks, - # but this is immediately invalidated becasue node id is updated in the new_dag. + # but this is immediately invalidated because node id is updated in the new_dag. self.property_set["node_start_time"].clear() new_dag.name = dag.name diff --git a/qiskit/transpiler/passes/scheduling/scheduling/set_io_latency.py b/qiskit/transpiler/passes/scheduling/scheduling/set_io_latency.py index 38fa9f1258d8..1116123cfa51 100644 --- a/qiskit/transpiler/passes/scheduling/scheduling/set_io_latency.py +++ b/qiskit/transpiler/passes/scheduling/scheduling/set_io_latency.py @@ -24,7 +24,7 @@ class SetIOLatency(AnalysisPass): Once these latencies are added to the property set, this information is also copied to the output circuit object as protected attributes, - so that it can be utilized outside the transilation, + so that it can be utilized outside the transpilation, for example, the timeline visualization can use latency to accurately show time occupation by instructions on the classical registers. """ diff --git a/qiskit/transpiler/target.py b/qiskit/transpiler/target.py index e61de07701c9..ddc65e1be250 100644 --- a/qiskit/transpiler/target.py +++ b/qiskit/transpiler/target.py @@ -442,7 +442,7 @@ def update_instruction_properties(self, instruction, qargs, properties): Args: instruction (str): The instruction name to update qargs (tuple): The qargs to update the properties of - properties (InstructionProperties): The properties to set for this nstruction + properties (InstructionProperties): The properties to set for this instruction Raises: KeyError: If ``instruction`` or ``qarg`` are not in the target """ @@ -466,7 +466,7 @@ def update_from_instruction_schedule_map(self, inst_map, inst_name_map=None, err inst_name_map (dict): An optional dictionary that maps any instruction name in ``inst_map`` to an instruction object. If not provided, instruction is pulled from the standard Qiskit gates, - and finally custom gate instnace is created with schedule name. + and finally custom gate instance is created with schedule name. error_dict (dict): A dictionary of errors of the form:: {gate_name: {qarg: error}} @@ -1292,7 +1292,7 @@ def from_configuration( Raises: TranspilerError: If the input basis gates contain > 2 qubits and ``coupling_map`` is specified. - KeyError: If no mappign is available for a specified ``basis_gate``. + KeyError: If no mapping is available for a specified ``basis_gate``. """ granularity = 1 min_length = 1 diff --git a/qiskit/utils/__init__.py b/qiskit/utils/__init__.py index a1329457f8f9..789b8c0da9b0 100644 --- a/qiskit/utils/__init__.py +++ b/qiskit/utils/__init__.py @@ -53,8 +53,8 @@ backend etc. -Optional Depedency Checkers (:mod:`qiskit.utils.optionals`) -=========================================================== +Optional Dependency Checkers (:mod:`qiskit.utils.optionals`) +============================================================ .. automodule:: qiskit.utils.optionals """ diff --git a/releasenotes/notes/0.13/suppress-packaging-warnings-396b38feb6b3d52f.yaml b/releasenotes/notes/0.13/suppress-packaging-warnings-396b38feb6b3d52f.yaml index 3ee97941cbe2..82616a20d4a7 100644 --- a/releasenotes/notes/0.13/suppress-packaging-warnings-396b38feb6b3d52f.yaml +++ b/releasenotes/notes/0.13/suppress-packaging-warnings-396b38feb6b3d52f.yaml @@ -21,5 +21,5 @@ features: for users who are only running qiskit-terra (or just not qiskit-aer and/or qiskit-ibmq-provider) and the warnings are not an indication of a potential packaging problem. If the user config file is set to disable the warnings - this can be overriden by setting the ``QISKIT_SUPPRESS_PACKAGING_WARNINGS`` + this can be overridden by setting the ``QISKIT_SUPPRESS_PACKAGING_WARNINGS`` to ``N`` or ``n``