@@ -203,7 +203,8 @@ void bindOperators(py::module &mod) {
203
203
204
204
mod.def (
205
205
" jordan_wigner" ,
206
- [](py::buffer hpq, py::buffer hpqrs, double core_energy = 0.0 , double tolerance = 1e-15 ) {
206
+ [](py::buffer hpq, py::buffer hpqrs, double core_energy = 0.0 ,
207
+ double tolerance = 1e-15 ) {
207
208
auto hpqInfo = hpq.request ();
208
209
auto hpqrsInfo = hpqrs.request ();
209
210
auto *hpqData = reinterpret_cast <std::complex<double > *>(hpqInfo.ptr );
@@ -218,7 +219,8 @@ void bindOperators(py::module &mod) {
218
219
return fermion_compiler::get (" jordan_wigner" )
219
220
->generate (core_energy, hpqT, hpqrsT, tolerance);
220
221
},
221
- py::arg (" hpq" ), py::arg (" hpqrs" ), py::arg (" core_energy" ) = 0.0 , py::arg (" tolerance" ) = 1e-15 ,
222
+ py::arg (" hpq" ), py::arg (" hpqrs" ), py::arg (" core_energy" ) = 0.0 ,
223
+ py::arg (" tolerance" ) = 1e-15 ,
222
224
R"#(
223
225
Perform the Jordan-Wigner transformation on fermionic operators.
224
226
@@ -236,7 +238,7 @@ hpqrs : numpy.ndarray
236
238
core_energy : float, optional
237
239
The core energy of the system when using active space Hamiltonian, nuclear energy otherwise. Default is 0.0.
238
240
tolerance : float, optional
239
- The threshold value for ignoring small coefficients in the one-body integrals .
241
+ The threshold value for ignoring small coefficients.
240
242
Coefficients with absolute values smaller than this tolerance are considered as zero.
241
243
Default is 1e-15.
242
244
@@ -271,7 +273,8 @@ RuntimeError
271
273
272
274
mod.def (
273
275
" jordan_wigner" ,
274
- [](py::buffer buffer, double core_energy = 0.0 , double tolerance = 1e-15 ) {
276
+ [](py::buffer buffer, double core_energy = 0.0 ,
277
+ double tolerance = 1e-15 ) {
275
278
auto info = buffer.request ();
276
279
auto *data = reinterpret_cast <std::complex<double > *>(info.ptr );
277
280
std::size_t size = 1 ;
@@ -292,7 +295,8 @@ RuntimeError
292
295
return fermion_compiler::get (" jordan_wigner" )
293
296
->generate (core_energy, hpq, hpqrs, tolerance);
294
297
},
295
- py::arg (" hpq" ), py::arg (" core_energy" ) = 0.0 , py::arg (" tolerance" ) = 1e-15 ,
298
+ py::arg (" hpq" ), py::arg (" core_energy" ) = 0.0 ,
299
+ py::arg (" tolerance" ) = 1e-15 ,
296
300
R"#(
297
301
Perform the Jordan-Wigner transformation on fermionic operators.
298
302
@@ -309,7 +313,7 @@ hpq : numpy.ndarray
309
313
core_energy : float, optional
310
314
The core energy of the system. Default is 0.0.
311
315
tolerance : float, optional
312
- The threshold value for ignoring small coefficients in the one-body integrals .
316
+ The threshold value for ignoring small coefficients.
313
317
Coefficients with absolute values smaller than this tolerance are considered as zero.
314
318
Default is 1e-15.
315
319
0 commit comments