Skip to content

Commit aa57be5

Browse files
authored
Fix common typos (#6403)
1 parent 9e86d36 commit aa57be5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cirq-core/cirq/testing/circuit_compare.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def assert_circuits_have_same_unitary_given_final_permutation(
226226
expected: circuits.AbstractCircuit,
227227
qubit_map: Dict[ops.Qid, ops.Qid],
228228
) -> None:
229-
"""Asserts two circuits have the same unitary up to a final permuation of qubits.
229+
"""Asserts two circuits have the same unitary up to a final permutation of qubits.
230230
231231
Args:
232232
actual: A circuit computed by some code under test.

cirq-core/cirq/transformers/qubit_management_transformers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def map_clean_and_borrowable_qubits(
7171
inserting all mapped operations in a resulting circuit using EARLIEST strategy. The reason
7272
is that preserving moment structure forces additional constraints on the qubit allocation
7373
strategy (i.e. if two operations `op1` and `op2` are in the same moment, then we cannot
74-
reuse ancilla across `op1` and `op2`). We leave it upto the user to force such constraints
74+
reuse ancilla across `op1` and `op2`). We leave it up to the user to force such constraints
7575
using the qubit manager instead of making it part of the transformer.
7676
3. However, for borrowable system qubits managed by the transformer, we do not reuse qubits
7777
within the same moment.

cirq-ft/cirq_ft/algos/state_preparation_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_state_preparation_via_coherent_alias_sampling(num_sites, epsilon):
5353
assert all(np.abs(prepared_state[:L]) > 1e-6) and all(np.abs(prepared_state[L:]) <= 1e-6)
5454
prepared_state = prepared_state[:L] / np.sqrt(num_non_zero[:L])
5555
# Assert that the absolute square of prepared state (probabilities instead of amplitudes) is
56-
# same as `lcu_coefficients` upto `epsilon`.
56+
# same as `lcu_coefficients` up to `epsilon`.
5757
np.testing.assert_allclose(lcu_coefficients, abs(prepared_state) ** 2, atol=epsilon)
5858

5959

cirq-google/cirq_google/cloud/quantum_v1alpha1/services/quantum_engine_service/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_mtls_endpoint_and_cert_source(cls, client_options: Optional[ClientOption
116116
The API endpoint is determined in the following order:
117117
(1) if `client_options.api_endpoint` if provided, use the provided one.
118118
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
119-
default mTLS endpoint; if the environment variabel is "never", use the default API
119+
default mTLS endpoint; if the environment variable is "never", use the default API
120120
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
121121
use the default API endpoint.
122122

cirq-google/cirq_google/cloud/quantum_v1alpha1/services/quantum_engine_service/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def get_mtls_endpoint_and_cert_source(cls, client_options: Optional[client_optio
276276
The API endpoint is determined in the following order:
277277
(1) if `client_options.api_endpoint` if provided, use the provided one.
278278
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
279-
default mTLS endpoint; if the environment variabel is "never", use the default API
279+
default mTLS endpoint; if the environment variable is "never", use the default API
280280
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
281281
use the default API endpoint.
282282

docs/google/best_practices.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"id": "35ed540d7845"
126126
},
127127
"source": [
128-
"### Using built-in tranformers as a first pass\n",
128+
"### Using built-in transformers as a first pass\n",
129129
"\n",
130130
"Using built-in transformers will allow you to compile to the correct gate set. As they are\n",
131131
"automated solutions, they will not always perform as well as a hand-crafted solution, but\n",

0 commit comments

Comments
 (0)