Exemple #1
0
 def test_add_CNOT_remove(self):
     q = Qubits.random_qubits(2)
     qq = q.clone()
     q.add_qubit()
     Gates.CNOT(q, 1, 0)
     q.remove_qubit()
     self.assert_qubits(q, qq)
Exemple #2
0
 def test_add_remove(self):
     q = Qubits.random_qubits(2)
     qq = q.clone()
     q.add_qubit()
     q.remove_qubit()
     self.assert_qubits(q, qq)