From dd30a64b6f8f371506dcdb8faf9497c1f74017c9 Mon Sep 17 00:00:00 2001 From: Tim Stavenger Date: Fri, 29 Sep 2023 08:09:49 -0700 Subject: [PATCH] update cutoff selection comment --- c2qa/operators.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c2qa/operators.py b/c2qa/operators.py index c49e61c..55cf765 100644 --- a/c2qa/operators.py +++ b/c2qa/operators.py @@ -113,7 +113,7 @@ def s2(self, theta, cutoff_a, cutoff_b): csc_matrix: operator matrix """ - # FIXME which cutoff to use + # FIXME Using both cutoffs will cause `ValueError: dimension mismatch` between calculated matrices. arg = (numpy.conjugate(theta * 1j) * self.get_a12_dag(cutoff_a)) - (theta * 1j * self.get_a12(cutoff_a)) return scipy.sparse.linalg.expm(arg) @@ -128,7 +128,7 @@ def bs(self, theta, cutoff_a, cutoff_b): csc_matrix: operator matrix """ - # FIXME which cutoff to use + # FIXME Using both cutoffs will cause `ValueError: dimension mismatch` between calculated matrices. arg = theta * self.get_a1dag2(cutoff_a) - numpy.conj(theta) * self.get_a12dag(cutoff_a) return scipy.sparse.linalg.expm(arg) @@ -214,7 +214,7 @@ def cbs(self, theta, cutoff_a, cutoff_b): Returns: csc_matrix: operator matrix """ - # FIXME which cutoff to use + # FIXME Using both cutoffs will cause `ValueError: dimension mismatch` between calculated matrices. argm = theta * self.get_a1dag2(cutoff_a) - numpy.conjugate(theta) * self.get_a12dag(cutoff_a) arg = scipy.sparse.kron(zQB, argm).tocsc() @@ -230,7 +230,7 @@ def cschwinger(self, beta, theta_1, phi_1, theta_2, phi_2, cutoff_a, cutoff_b): csc_matrix: operator matrix """ - # FIXME which cutoff to use + # FIXME Using both cutoffs will cause `ValueError: dimension mismatch` between calculated matrices. Sx = (self.get_a1(cutoff_a) * self.get_a2_dag(cutoff_a) + self.get_a1_dag(cutoff_a) * self.get_a2(cutoff_a))/2 Sy = (self.get_a1(cutoff_a) * self.get_a2_dag(cutoff_a) - self.get_a1_dag(cutoff_a) * self.get_a2(cutoff_a))/(2*1j) Sz = (self.get_a2_dag(cutoff_a) * self.get_a2(cutoff_a) - self.get_a1_dag(cutoff_a) * self.get_a1(cutoff_a))/2