SparsityOracleTrue

About the SparsityOracleTrue class

The WaveBlocks Project

@author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016 R. Bourquin @license: Modified BSD License

Inheritance diagram

Inheritance diagram of SparsityOracleTrue

Class documentation

class WaveBlocksND.SparsityOracleTrue[source]

This class implements an oracle always saying the integrals are non-zero.

__init__()[source]

Initialize an oracle for estimating if a specific overlap integral \langle \Psi_k | \Psi_l \rangle is approximately zero. This oracle always returns False.

is_not_zero(pacbra, packet, component=None)[source]

Try to estimate if the overlap integral \langle \Psi_k | \Psi_l \rangle is zero or at least negligible.

Parameters:
  • pacbra – The packet \Psi_k that is used for the ‘bra’ part.
  • packet – The packet \Psi_l that is used for the ‘ket’ part.
  • component – The component of the packet that is considered.
Returns:

True independent of any input or condition.