test display quantum gate helper method