finalstate: Final state

View source: R/finalstate.R

finalstateR Documentation

Final state

Description

Find the vector state of a circuit

Usage

finalstate(a, b)

Examples

# to determinate the state of a circuit without any gate
finalstate(qc,1)
# to determinate the state of a circuit with a gate but without Cnot gate
finalstate(qc,2)
# to determinate the state of a circuit with Cnot gate type (0,1)
finalstate(qc,3)
# to determinate the state of a circuit with Cnot gate type (1,0)
finalstate(qc,4)


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