Skip to content

Commit

Permalink
Fix parametrized -> parameterized typos (#2592)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtomole authored and CirqBot committed Nov 22, 2019
1 parent 2963285 commit 5dcab58
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cirq/contrib/qasm_import/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def on(self, params: List[float], args: List[List[ops.Qid]],
"at line {}".format(reg_sizes, lineno))

# the actual gate we'll apply the arguments to might be a parameterized
# or non-parametrized gate
# or non-parameterized gate
final_gate: ops.Gate = (self.cirq_gate if isinstance(
self.cirq_gate, ops.Gate) else self.cirq_gate(params))
# OpenQASM gates can be applied on single qubits and qubit registers.
Expand Down
4 changes: 2 additions & 2 deletions cirq/experiments/n_qubit_tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StateTomographyExperiment:
Does the fitting of generated data to determine the density matrix.
Attributes:
rot_circuit: Circuit with parametrized rotation gates to do before the
rot_circuit: Circuit with parameterized rotation gates to do before the
final measurements.
rot_sweep: The list of rotations on the qubits to perform before
measurement.
Expand Down Expand Up @@ -180,7 +180,7 @@ def get_state_tomography_data(sampler: cirq.Sampler,
sampler: Sampler to collect the data from.
qubits: Qubits to do the tomography on.
circuit: Circuit to do the tomography on.
rot_circuit: Circuit with parametrized rotation gates to do before the
rot_circuit: Circuit with parameterized rotation gates to do before the
final measurements.
rot_sweep: The list of rotations on the qubits to perform before
measurement.
Expand Down
2 changes: 1 addition & 1 deletion cirq/ops/pauli_string_phasor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def test_merge_with():
op1.merged_with(op2)


def test_is_parametrized():
def test_is_parameterized():
op = cirq.PauliStringPhasor(cirq.PauliString({}))
assert not cirq.is_parameterized(op)
assert not cirq.is_parameterized(op**0.1)
Expand Down
2 changes: 1 addition & 1 deletion cirq/optimizers/eject_phased_paulis.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self,
permitted to simply drop negligible combinations gates with a
threshold determined by this tolerance.
eject_parameterized: If True, the optimization will attempt to eject
parametrized gates as well. This may result in other gates
parameterized gates as well. This may result in other gates
parameterized by symbolic expressions.
"""
self.tolerance = tolerance
Expand Down
2 changes: 1 addition & 1 deletion cirq/optimizers/eject_phased_paulis_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_absorbs_z():
[],
))

# Parametrized Z.
# parameterized Z.
assert_optimizes(
before=quick_circuit(
[cirq.PhasedXPowGate(phase_exponent=0.125).on(q)],
Expand Down
2 changes: 1 addition & 1 deletion cirq/optimizers/eject_z.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self,
permitted to simply drop negligible combinations of Z gates,
with a threshold determined by this tolerance.
eject_parameterized: If True, the optimization will attempt to eject
parametrized Z gates as well. This may result in other gates
parameterized Z gates as well. This may result in other gates
parameterized by symbolic expressions.
"""
self.tolerance = tolerance
Expand Down

0 comments on commit 5dcab58

Please sign in to comment.