Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cirq-core/cirq/value/condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class BitMaskKeyCondition(Condition):
after taking the bitwise and with a bitmask.

Examples:
- BitMaskKeycondition('a') -> a != 0
- BitMaskKeyCondition('a') -> a != 0
- BitMaskKeyCondition('a', bitmask=13) -> (a & 13) != 0
- BitMaskKeyCondition('a', bitmask=13, target_value=9) -> (a & 13) != 9
- BitMaskKeyCondition('a', bitmask=13, target_value=9, equal_target=True) -> (a & 13) == 9
Expand Down
2 changes: 1 addition & 1 deletion docs/build/classical_control.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"## Multi-Qubit Measurements and Bit Masks\n",
"\n",
"The `cirq.KeyedCondition` class limited in that it evaluate a simple function `is the value != 0?`. When doing multi-qubit measurement we often need to do more complex function like applying a bitmask before comparison. The class [cirq.BitMaskKeyCondition](https://github.com/quantumlib/Cirq/blob/ebef9bff978f28b032f54eb5f0a2e1cb9ec6464c/cirq-core/cirq/value/condition.py#L140) provides this functionality allowing us to do:\n",
"- `BitMaskKeycondition('a')` $\\rightarrow a \\neq 0$\n",
"- `BitMaskKeyCondition('a')` $\\rightarrow a \\neq 0$\n",
"- `BitMaskKeyCondition('a', bitmask=13)` $\\rightarrow (a \\& 13) \\neq 0$\n",
"- `BitMaskKeyCondition('a', bitmask=13, target_value=9)` $\\rightarrow (a \\& 13) \\neq 9$\n",
"- `BitMaskKeyCondition('a', bitmask=13, target_value=9, equal_target=True)` $\\rightarrow (a \\& 13) = 9$\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/transform/custom_transformers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
},
"source": [
"### `cirq.TransformerLogger` and support for automated logging\n",
"The `cirq.TransformerLogger` class is used to log the actions of a transformer on an input circuit. `@cirq.transformer` decorator automatically adds support for logging the initial and final circuits for each transfomer step. "
"The `cirq.TransformerLogger` class is used to log the actions of a transformer on an input circuit. `@cirq.transformer` decorator automatically adds support for logging the initial and final circuits for each transformer step. "
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/transform/routing_transformer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"id": "ot9EMHfg0175"
},
"source": [
"## Routing as a `@cirq.transfomer`"
"## Routing as a `@cirq.transformer`"
]
},
{
Expand Down
Loading