Esempio n. 1
0
def test_convert_SmSp_2():
    state = "000"
    value = oper.convert("S-S+", state, amps)
    assert value == 0
Esempio n. 2
0
def test_convert_SpSm_2():
    state = "000"
    value = oper.convert("S+S-", state, amps)
    assert value == 0
Esempio n. 3
0
def test_convert_SmSp_1():
    state = "101"
    value = oper.convert("S-S+", state, amps)
    assert value == 2
Esempio n. 4
0
def test_convert_SpSm_1():
    state = "101"
    value = oper.convert("S+S-", state, amps)
    assert value == 0.5
Esempio n. 5
0
def test_convert_SzSz_2():
    state = "011"
    value = oper.convert("SzSz", state, amps)
    assert value == 0
Esempio n. 6
0
def test_convert_SzSz_1():
    state = "101"
    value = oper.convert("SzSz", state, amps)
    assert value == -0.5
Esempio n. 7
0
def test_convert_S2S3_2():
    state = "011"
    value = oper.convert("S2S3", state, amps)
    assert value == 0.25
Esempio n. 8
0
def test_convert_S2S3_1():
    state = "101"
    value = oper.convert("S2S3", state, amps)
    assert value == -0.25