Simulators¶
QVMs promise to behave like a real QPU. However, under-the-hood there is usually a simulation that has fewer constraints than a physical device. For example, in a wavefunction (or statevector) simulation, you can directly inspect amplitudes and probabilities.
|
A simulator that propagates a wavefunction representation of a quantum state. |
|
A wavefunction simulator that prioritizes readability over performance. |
|
A density matrix simulator that prioritizes readability over performance. |
|
A wavefunction simulator that uses numpy’s tensordot or einsum to update a state vector |
Reference Utilities¶
|
Takes a PauliSum object along with a list of qubits and returns a matrix corresponding the tensor representation of the object. |
|
Lift a pyquil |
|
Return the unitary of a pyQuil program. |
|
All bitstrings in lexicographical order as a 2d np.ndarray. |
Numpy Utilities¶
|
Left-multiplies the given axes of the wf tensor by the given gate matrix. |
|
Left-multiplies the given axes of the wf tensor by the given gate matrix. |