def test_allocate_dirty_qubit_gate(): gate = _gates.AllocateDirtyQubitGate() assert str(gate) == "AllocateDirty" assert gate.get_inverse() == _gates.DeallocateQubitGate() assert isinstance(_gates.AllocateDirty, _gates.AllocateDirtyQubitGate)
def test_deallocate_qubit_gate(): gate = _gates.DeallocateQubitGate() assert str(gate) == "Deallocate" assert gate.get_inverse() == _gates.AllocateQubitGate() assert isinstance(_gates.Deallocate, _gates.DeallocateQubitGate)