def test_get_rigetti_qcs_sampler():
    """test that get_rigetti_qcs_sampler can initialize a `RigettiQCSSampler`
    through `pyquil.get_qc`."""
    sampler = get_rigetti_qcs_sampler('9q-square', as_qvm=True, noisy=False)
    assert sampler._quantum_computer.name == '9q-square-qvm'
test that get_rigetti_qcs_sampler can initialize a `RigettiQCSSampler`
    through `pyquil.get_qc`.
cirq-rigetti/cirq_rigetti/sampler_test.py