triqs.gfs.block2_gf.Block2Gf.__getitem__

Block2Gf.__getitem__(key)[source]

Access a single block by name pair.

Parameters:
keytuple of (hashable, hashable)

(bn1, bn2) block name pair.

Returns:
Gf

The requested block (a reference, not a copy).

Raises:
IndexError

If key does not name an existing block.