Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77546b5

Browse files
dstrain115pavoljuhas
authored andcommitted
Fix typos in reference docs (#7539)
- These are typos identified by running the CommonTypos internal tool onapi reference docs for cirq.
1 parent6f1a975 commit77546b5

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
deffrom_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 thethefirst (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 targetfrequecy for the qubit at end of detune gate.
68-
prev_freq: Previous detuningfrequecy to compensate beginning of detune gate.
67+
target_freq: The targetfrequency for the qubit at end of detune gate.
68+
prev_freq: Previous detuningfrequency 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: Ifture, using the analog model instead of
234+
analog_cal_for_pulseshaping: Iftrue, 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
defclifford_tableau_arg_to_proto(
533533
value:CliffordTableau,*,out:v2.program_pb2.CliffordTableau|None=None
534534
):
535-
"""Writesan CliffordTableau object intoan CliffordTableau proto.
535+
"""Writesa CliffordTableau object intoa 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* beinterpetted as representing the
118+
the order of these `cirq.Result` objects should *not* beinterpreted as representing the
119119
order in which the circuit was repeated. Correlations between measurements keys are
120120
preserved.
121121

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp