tsim.core.instructions.xcx
← Module overview
function
source
functionxcx¶source
tsim.core.instructions.xcx
def xcx(b: GraphRepresentation, control: int, target: int) -> NoneX-controlled X gate. Applies X to target if control is in |-> state.
Parameters
| Name | Type | Description |
|---|---|---|
b | GraphRepresentation | |
control | int | |
target | int |