Source code for qpdk.samples.resonator_test_chip_yaml
"""Resonator test chip sample, materialized from its ``.pic.yml`` netlist."""
from pathlib import Path
import gdsfactory as gf
from gdsfactory.read import from_yaml
YAML_SAMPLE = Path(__file__).parent / "resonator_test_chip_yaml.pic.yml"
[docs]
@gf.cell(tags=["samples", "resonators"])
def resonator_test_chip_yaml() -> gf.Component:
"""Layout of the resonator test chip, read from its ``.pic.yml`` netlist.
The full chip layout is defined declaratively in the sample's netlist;
this factory only reads that file, so editing the netlist edits the
layout. The materialized name matches the ``.pic.yml``/GDS stem because
elvis resolves the top cell from the GDS file name.
Returns:
The materialized sample component.
"""
return from_yaml(YAML_SAMPLE, name="resonator_test_chip_yaml")