|View source on GitHub|
Ensure equivalence of basis state mapping.
cirq.testing.assert_equivalent_computational_basis_map( maps: Dict[int, int], circuit:
||dictionary of test computational basis input states and the output computational basis states that they should be mapped to. The states are specified using little endian convention, meaning that the last bit of a binary literal will refer to the last qubit's value.|
||the circuit to be tested|
||Raised in case any basis state is mapped to the wrong basis state.|