示例#1
0
def test_gate():
    tg = Gate("TEST", qubits=[Qubit(1), Qubit(2)], params=[])
    assert tg.out() == "TEST 1 2"
示例#2
0
def test_gate():
    tg = Gate("TEST", qubits=(DirectQubit(1), DirectQubit(2)), params=[])
    assert tg.out() == "TEST 1 2"