Skip to content

Commit

Permalink
found an uncovered line in stateprep and fixed it
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian S. Steiger committed Aug 26, 2018
1 parent 744debe commit e7b86e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projectq/setups/decompositions/stateprep2cnot_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_wrong_final_state():
cmd = Command(None, StatePreparation([0, 1j]), qubits=([qb0, qb1],))
with pytest.raises(ValueError):
stateprep2cnot._decompose_state_preparation(cmd)
cmd2 = Command(None, StatePreparation([0, 0.999j]), qubits=([qb0, qb1],))
cmd2 = Command(None, StatePreparation([0, 0.999j]), qubits=([qb0],))
with pytest.raises(ValueError):
stateprep2cnot._decompose_state_preparation(cmd2)

Expand Down

0 comments on commit e7b86e2

Please sign in to comment.