tsim.core.instructions.cnot
← Module overview
function
source
functioncnot¶source
tsim.core.instructions.cnot
Signature
def cnot(b: GraphRepresentation, control: int, target: int, classically_controlled: list[bool] | None = None) -> NoneApply CNOT (controlled-X) gate.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
b | GraphRepresentation | required | |
control | int | required | |
target | int | required | |
classically_controlled | list[bool] | None | None |