getMatrix
Syntax
Description
Add-On Required: This feature requires the MATLAB Support Package for Quantum Computing add-on.
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
getMatrixis practical only when n is less than about 15.
More About
Tips
To compare if two circuits perform an equivalent operation, you can use
getMatrixto get the matrix representations of the circuits. If the two matrices are equal, then the circuits are equivalent.
References
[1] Beeumen, Roel Van, Daan Camps, and Neil Mehta. “QCLAB++: Simulating Quantum Circuits on GPUs.” Preprint, submitted February 28, 2023. https://doi.org/10.48550/arXiv.2303.00123.
Version History
Introduced in R2023a