Skip to content

bloqade.native.stdlib.simple.cx

← Module overview

functioncxsource

bloqade.native.stdlib.simple.cx

def cx(control: qubit.Qubit, target: qubit.Qubit)

Apply a controlled-X gate on two qubits.

Parameters

NameTypeDescription
controlqubit.QubitThe control qubit.
targetqubit.QubitThe target qubit.
source