xgate: X gate

View source: R/xgate.R

xgateR Documentation

X gate

Description

PauliX gate for a circuit

Usage

xgate(qubit)

Examples

# to apply an X gate to the first qubit of a circuit called qc

qc$q_1<-PauliX(qc$q_1)


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