Skip to content

Commit 77546b5

Browse files
dstrain115pavoljuhas
authored andcommitted
Fix typos in reference docs (#7539)
- These are typos identified by running the CommonTypos internal tool on api reference docs for cirq.
1 parent 6f1a975 commit 77546b5

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

cirq-core/cirq/ops/fsim_gate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def from_fsim_rz(
350350

351351
@staticmethod
352352
def from_matrix(u: np.ndarray) -> PhasedFSimGate | None:
353-
"""Contruct a PhasedFSimGate from unitary.
353+
"""Constructs a PhasedFSimGate from unitary.
354354
355355
Args:
356356
u: A unitary matrix representing a PhasedFSimGate.

cirq-core/cirq/value/condition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class BitMaskKeyCondition(Condition):
154154
- BitMaskKeyCondition.create_not_equal_mask('a', 13) -> (a & 13) != 13
155155
156156
The bits in the bitmask have the same order as the qubits passed to `cirq.measure(...)`. That's
157-
the most significant bit corresponds to the the first (left most) qubit.
157+
the most significant bit corresponds to the first (left most) qubit.
158158
159159
Attributes:
160160
- key: Measurement key.

cirq-google/cirq_google/line/placement/anneal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class AnnealSequenceSearchStrategy(place_strategy.LinePlacementStrategy):
327327
328328
TODO: This line search strategy is still work in progress and requires
329329
efficiency improvements.
330-
Github issue: https://github.com/quantumlib/Cirq/issues/2217
330+
GitHub issue: https://github.com/quantumlib/Cirq/issues/2217
331331
"""
332332

333333
def __init__(

cirq-google/cirq_google/ops/analog_detune_gates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def __init__(
6464
Args:
6565
length: The duration of gate.
6666
w: Width of the step envelope raising edge.
67-
target_freq: The target frequecy for the qubit at end of detune gate.
68-
prev_freq: Previous detuning frequecy to compensate beginning of detune gate.
67+
target_freq: The target frequency for the qubit at end of detune gate.
68+
prev_freq: Previous detuning frequency to compensate beginning of detune gate.
6969
neighbor_coupler_g_dict: A dictionary has coupler name like "c_q0_0_q1_0"
7070
as key and the coupling strength `g` as the value.
7171
prev_neighbor_coupler_g_dict: A dictionary has the same format as
@@ -231,7 +231,7 @@ def __init__(
231231
interpolate_coupling_cal: If true, find the required amp for the coupling strength
232232
through interpolation. If not true, require all coupling strength has associated
233233
amp calibrated in the registry.
234-
analog_cal_for_pulseshaping: If ture, using the analog model instead of
234+
analog_cal_for_pulseshaping: If true, using the analog model instead of
235235
standard transmon model to find the amp of pulse.
236236
"""
237237
self.length = length

cirq-google/cirq_google/serialization/arg_func_langs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def internal_gate_from_proto(msg: v2.program_pb2.InternalGate) -> InternalGate:
532532
def clifford_tableau_arg_to_proto(
533533
value: CliffordTableau, *, out: v2.program_pb2.CliffordTableau | None = None
534534
):
535-
"""Writes an CliffordTableau object into an CliffordTableau proto.
535+
"""Writes a CliffordTableau object into a CliffordTableau proto.
536536
Args:
537537
value: The gate to encode.
538538
out: The proto to write the result into. Defaults to a new instance.

cirq-ionq/cirq_ionq/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def to_cirq_result(self, params: cirq.ParamResolver | None = None) -> cirq.Resul
115115
`cirq.Result` contains a less dense representation of results than that returned by
116116
the IonQ API. Typically these results are also ordered by when they were run, though
117117
that contract is implicit. Because the IonQ API does not retain that ordering information,
118-
the order of these `cirq.Result` objects should *not* be interpetted as representing the
118+
the order of these `cirq.Result` objects should *not* be interpreted as representing the
119119
order in which the circuit was repeated. Correlations between measurements keys are
120120
preserved.
121121

0 commit comments

Comments
 (0)