supermarq.simulation
Functions
|
Noiseless statevector simulation. |
Module Contents
- supermarq.simulation.get_ideal_counts(circuit: cirq.Circuit) dict[str, float]
Noiseless statevector simulation.
Note that the qubits in the returned bitstrings are in big-endian order. For example, for a circuit defined on qubits .. code:
q0 ------ q1 ------ q2 ------
the bitstrings are written as q0q1q2.
- Parameters:
circuit – Input cirq.Circuit to be simulated.
- Returns:
A dictionary with bitstring and probability as the key, value pairs.