qecx.examples.path

qecx.examples.path(name)

Return the path of the example file name distributed with the package.

Parameters:

name (str) – One of names(), such as "steane_7_1_3.qecx".

Returns:

The file inside the installed package, ready to pass to QECXDocument.load, load_qecx or validate_qecx_file.

Return type:

Path

Raises:

ValueError – If name is not one of names().