Skip to content

bloqade.squin.stdlib.simple.gate.cx

← Module overview

functioncxsource

bloqade.squin.stdlib.simple.gate.cx

def cx(control: Qubit, target: Qubit) -> None

Apply a controlled-X gate to a pair of qubits.

Parameters

NameTypeDescription
controlQubit
targetQubit
source