getMatrix
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Syntax
Description
Examples
Input Arguments
Limitations
Because the size of the matrix that represents a quantum circuit or gate operation scales as -by- as the number of qubits n grows, using
getMatrix
is practical only when n is less than about 15.
More About
Tips
To compare if two circuits perform an equivalent operation, you can use
getMatrix
to get the matrix representations of the circuits. If the two matrices are equal, then the circuits are equivalent.
Version History
Introduced in R2023a