예제 #1
0
 def test_chi_compose_other_reps(self):
     """Test compose of Chi works with other reps."""
     chan = Chi(self.chiI)
     self._check_compose_other_reps(chan)
예제 #2
0
 def test_chi_tensor_random(self):
     """Test tensor of Chi matrices is correct."""
     mats = [self.rand_matrix(2, 2) for _ in range(4)]
     chans = [Chi(Operator(mat)) for mat in mats]
     self._compare_tensor_to_operator(chans, mats)
예제 #3
0
 def test_chi_expand_other_reps(self):
     """Test expand of Chi works with other reps."""
     chan = Chi(self.chiI)
     self._check_expand_other_reps(chan)
예제 #4
0
 def test_chi_compose_random(self):
     """Test compose of Chi matrices is correct."""
     mats = [self.rand_matrix(4, 4) for _ in range(4)]
     chans = [Chi(UnitaryChannel(mat)) for mat in mats]
     self._compare_compose_to_unitary(chans, mats)
예제 #5
0
 def test_chi_subtract_other_rep(self):
     """Test subtraction of Chi matrices is correct."""
     chan = Chi(self.chiI)
     self._check_subtract_other_reps(chan)
예제 #6
0
 def test_chi_tensor_other_reps(self):
     """Test tensor of Chi works with other reps."""
     chan = Chi(self.chiI)
     self._check_tensor_other_reps(chan)
예제 #7
0
 def test_chi_add_other_rep(self):
     """Test addition of Chi matrices is correct."""
     chan = Chi(self.chiI)
     self._check_add_other_reps(chan)
예제 #8
0
 def test_chi_adjoint_random(self):
     """Test adjoint of Chi matrices is correct."""
     mats = [self.rand_matrix(4, 4) for _ in range(4)]
     chans = [Chi(Operator(mat)) for mat in mats]
     self._compare_adjoint_to_operator(chans, mats)
예제 #9
0
 def test_chi_adjoint(self):
     """Test adjoint of Chi matrices is correct."""
     mats = self.unitaries
     chans = [Chi(mat) for mat in self.chis]
     self._compare_adjoint_to_operator(chans, mats)
예제 #10
0
 def test_chi_transpose(self):
     """Test transpose of Chi matrices is correct."""
     mats = self.unitaries
     chans = [Chi(mat) for mat in self.chis]
     self._compare_transpose_to_operator(chans, mats)
예제 #11
0
 def test_chi_conjugate(self):
     """Test conjugate of Chi matrices is correct."""
     mats = self.unitaries
     chans = [Chi(mat) for mat in self.chis]
     self._compare_conjugate_to_unitary(chans, mats)