From 40cca31f1f95c01d9c8f6a0d40decdbc673cc590 Mon Sep 17 00:00:00 2001 From: pwkj Date: Mon, 22 Apr 2024 11:03:25 +0200 Subject: [PATCH] rdm_trafo default from False to None --- src/tequila/quantumchemistry/qc_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tequila/quantumchemistry/qc_base.py b/src/tequila/quantumchemistry/qc_base.py index c6f6b36d..369073c3 100644 --- a/src/tequila/quantumchemistry/qc_base.py +++ b/src/tequila/quantumchemistry/qc_base.py @@ -1639,7 +1639,7 @@ def rdm2(self): def compute_rdms(self, U: QCircuit = None, variables: Variables = None, spin_free: bool = True, get_rdm1: bool = True, get_rdm2: bool = True, ordering="dirac", use_hcb: bool = False, - rdm_trafo: QubitHamiltonian = False): + rdm_trafo: QubitHamiltonian = None): """ Computes the one- and two-particle reduced density matrices (rdm1 and rdm2) given a unitary U. This method uses the standard ordering in physics as denoted below.