# simulate

**Installation Required:** This functionality requires MATLAB Support Package for Quantum Computing.

## Description

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 $$|0\rangle $$ 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 $${2}^{n}$$ as the number of qubits

*n*grows, using`simulate`

is practical for finding the final state`s`

of a circuit only when*n*is less than about 15.

## Version History

**Introduced in R2023a**