simulate
Description
Add-On Required: This feature requires the MATLAB Support Package for Quantum Computing add-on.
additionally specifies the initial quantum state of the circuit.s = simulate(c,inputState)
The default value of inputState is "0...0" with as
many "0" characters as there are qubits in c, where
each qubit is in the state. You can specify inputState as a string
containing "0", "1", "+", or
"-" with as many characters as there are qubits in
c, a numeric vector, or a QuantumState object.
Examples
Input Arguments
Output Arguments
Limitations
Because the number of possible basis states of a quantum state scales as as the number of qubits n grows, using
simulateis practical for finding the final statesof a circuit only when n is less than about 15.
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.
