Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
 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)
 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)
 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)
Exemple #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)