Skip to content

Commit

Permalink
speeling fixes (#5858)
Browse files Browse the repository at this point in the history
* speeling fixes

* lint

* pylint-spelling partial enable

* UK->US

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
levbishop and mergify[bot] authored Feb 19, 2021
1 parent 4485d1c commit 1ff533d
Show file tree
Hide file tree
Showing 113 changed files with 493 additions and 201 deletions.
291 changes: 291 additions & 0 deletions .local-spellings
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
Aaronson
Abelian
Abhari
acyclic
adjoint
al
ancilla
ancillas
ansatz
API
ASCII
async
attribute's
autofunction
autosummary
azimuthal
backend
backend's
backends
bargraph
BFS
Biamonte
bijective
bijectivity
bitstring
bitstrings
Bloch
blog
Brassard
Bravyi
Bravyi's
builtin
Bures
cancelled
cancelling
castable
Cem
Chernoff
Childs
Choi
Chong
Chuang
Cirac
Cliffords
cnot
cnots
combinatorial
conformant
CP
CPTP
CPU
CPUs
CSR
cswap
currentmodule
CVaR
cython
DAG's
Dehaene
deserialization
deserialize
deserialized
deserializes
devectorization
devectorize
dict
dicts
disassembler
dit
docstring
dropdown
dunder
durations
endian
entangler
enums
env
eof
et
Euler
evolutions
fallback
fetchable
fidelities
formatter
framechange
Fredkin
frontend
Gacon
Gambetta
gaussian
getter
GHz
GHZ
Gottesman
Gushu
Haar
hacky
Hadamard
Haselgrove
hashable
Hellinger
Hinton
Hoare
Horodecki
hostname
Hoyer
hyperthreading
idempotence
iff
indices
init
initializer
inline
instantiation
internet
invariants
isometry
iswap
Iten
iterable
Jacobian
Jandura's
Javadi
Jeroen
Johansson
json
jsonschema
jupyter
ket
Ketan
Kitaev
Kraus
kwarg
kwargs
labelling
len
lexer
lexers
LHS
lookahead
lossy
LSB
Makhlin
Martonosi
Maslov
mergeable
Merkel
metadata
Metger
modelled
Mølmer
Mosca
Motzoi
Moyard
multigraph
multiplexor
multiplexors
Murali
namespace
Nelder
normals
offline
online
opflow
optimizers
overcomplete
overoptimization
parameterization
parameterizations
pass's
Pauli
Paulis
piecewise
plugin
plugins
postprocessing
PRA
Prakash
progressbar
PTM
pyplot
qasm
qft
Qiskit's
qobj
qsphere
quaternion
quaternions
qubit
qubit's
qubits
qudit
recurse
recursing
redistributions
refactor
registerless
renormalizing
rescaling
resynthesis
resynthesized
RHS
runtime
Sabo
sanitization
schemas
Schoute
scikit
SDK
seealso
Sergey
Sergey's
Shende
Shor
SNO
Sørensen
statespace
statevector
stderr
stdin
stdout
stepwise
Stinespring
stylesheet
stylesheets
subcircuit
subcircuits
subclassed
subclasses
subclassing
subgraph
supercontrolled
superoperator
superoperators
Sutter
svg
Svore
swapper
symplectic
teleport
teleportation
Tetris
th
timeslot
timeslots
timestep
toctree
Toffoli
TP
transpilation
transpile
transpiled
transpiler
transpiling
Trotterization
unary
uncompiled
uncomputed
uncomputing
undirected
unentangled
unhandled
unitaries
unmergeable
unpickling
unroller
unrollers
Unsal
unsubscribe
unsubscribed
unsubscribing
URL
validator
validators
variational
vectorization
vectorize
vertices
von
Watrous
waveforms
wavefunction
Weyl
wireframe
wiremap
Woerner
Xie
Yufei
Zhang
Zoufal
5 changes: 3 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=no-self-use, # disabled as it is too verbose
disable=spelling, # way too noisy
no-self-use, # disabled as it is too verbose
fixme, # disabled as TODOs would show up as warnings
protected-access, # disabled as we don't follow the public vs private
# convention strictly
Expand Down Expand Up @@ -278,7 +279,7 @@ spelling-dict=
spelling-ignore-words=

# A path to a file that contains private dictionary; one word per line.
spelling-private-dict-file=
spelling-private-dict-file=.local-spellings

# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def oracle(self, oracle: QuantumCircuit) -> None:

@property
def state_preparation(self) -> QuantumCircuit:
r"""Get the state preperation operator :math:`\mathcal{A}`.
r"""Get the state preparation operator :math:`\mathcal{A}`.
Returns:
The :math:`\mathcal{A}` operator as `QuantumCircuit`.
Expand Down
4 changes: 2 additions & 2 deletions qiskit/algorithms/amplitude_amplifiers/amplitude_amplifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def amplify(self, amplification_problem: AmplificationProblem) -> 'Amplification


class AmplitudeAmplifierResult(AlgorithmResult):
"""The rmplification result base class."""
"""The amplification result base class."""

def __init__(self) -> None:
super().__init__()
Expand Down Expand Up @@ -79,7 +79,7 @@ def assignment(self, value: Any) -> None:
"""Set the value for the assignment.
Args:
value: A new value for the assigment/solution.
value: A new value for the assignment/solution.
"""
self._assignment = value

Expand Down
4 changes: 2 additions & 2 deletions qiskit/algorithms/optimizers/aqgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class AQGD(Optimizer):
"""Analytic Quantum Gradient Descent (AQGD) with Epochs optimizer.
Performs gradient descent optimization with a momentum term, analytic gradients,
and customized step length schedule for parametrized quantum gates, i.e.
and customized step length schedule for parameterized quantum gates, i.e.
Pauli Rotations. See, for example:
* K. Mitarai, M. Negoro, M. Kitagawa, and K. Fujii. (2018).
Expand All @@ -37,7 +37,7 @@ class AQGD(Optimizer):
Evaluating analytic gradients on quantum hardware. Phys. Rev. A 99, 032331.
https://arxiv.org/abs/1811.11184
for further details on analytic gradients of parametrized quantum gates.
for further details on analytic gradients of parameterized quantum gates.
Gradients are computed "analytically" using the quantum circuit when evaluating
the objective function.
Expand Down
2 changes: 1 addition & 1 deletion qiskit/assembler/assemble_circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _assemble_circuit(
instruction.conditional = conditional_reg_idx
max_conditional_idx += 1
# Delete condition attribute now that we have replaced it with
# the conditional and bfuc
# the conditional and bfunc
del instruction._condition

instructions.append(instruction)
Expand Down
2 changes: 1 addition & 1 deletion qiskit/circuit/classicalfunction/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def grover_oracle(a: Int1, b: Int1, c: Int1, d: Int1) -> Int1:
def classical_function(func):
"""
Parses and type checks the callable ``func`` to compile it into an ``ClassicalFunction``
that can be synthesised into a ``QuantumCircuit``.
that can be synthesized into a ``QuantumCircuit``.
Args:
func (callable): A callable (with type hints) to compile into an ``ClassicalFunction``.
Expand Down
2 changes: 1 addition & 1 deletion qiskit/circuit/gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def to_matrix(self) -> np.ndarray:
"""Return a Numpy.array for the gate unitary matrix.
Returns:
np.ndarray: if the Gate subclass has a matrix defintion.
np.ndarray: if the Gate subclass has a matrix definition.
Raises:
CircuitError: If a Gate subclass does not implement this method an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class LinearAmplitudeFunction(QuantumCircuit):
In general, the function of interest :math:`f` is defined from some interval :math:`[a,b]`,
the ``domain`` to :math:`[c,d]`, the ``image``, instead of :math`\{1, ..., N}` to
:math:`[0, 1]`. Usng an affine transformation we can rescale :math:`f` to :math:`\hat{f}`:
:math:`[0, 1]`. Using an affine transformation we can rescale :math:`f` to :math:`\hat{f}`:
.. math::
Expand Down
Loading

0 comments on commit 1ff533d

Please sign in to comment.