test_state.py 256 B

12345678910111213
  1. from qcgpu import State
  2. import pytest
  3. def test_state_creation():
  4. # Any machine should be able to handle 14 qubits
  5. for i in range(1, 15):
  6. State(i)
  7. def test_state_with_no_qubits_fails():
  8. with pytest.raises(Exception):
  9. State(0)