Cnot: Cnot gate

View source: R/Cnot.R

CnotR Documentation

Cnot gate

Description

cnot gate for a circuit with two qubits

Usage

Cnot(a, b)

Examples

# to apply Cnot gate to a circuit called qc

for Cx(0,1)
Cnot(qc,01)

forcx(1,0)
Cnot(qc,10)


abrosechapel/QuantuR documentation built on March 24, 2022, 8 p.m.