bloqade.native.stdlib.simple.cx
← Module overview
function
source
functioncx¶source
bloqade.native.stdlib.simple.cx
def cx(control: qubit.Qubit, target: qubit.Qubit)Apply a controlled-X gate on two qubits.
Parameters
| Name | Type | Description |
|---|---|---|
control | qubit.Qubit | The control qubit. |
target | qubit.Qubit | The target qubit. |