CZ {QuantumOps} | R Documentation |
CZ
Description
If no argument is supplied, returns the matrix of Controlled-Z gate. If ket given as input, applies a Controlled-Z gate to the input ket and returns the resulting ket
Usage
CZ(...)
Arguments
... |
No argument, or 4 dimensional (2 qubit) ket (column vector) that is input to the gate |
Value
Matix of the Controlled-Z gate or ket after a Controlled-Z gate is applied
Examples
CZ(ket(1,1,1,1))
CZ()
[Package QuantumOps version 3.0.1 Index]