def test_get_rigetti_qcs_service():
    """test that get_rigetti_qcs_service can initialize a `RigettiQCSService`
    through `pyquil.get_qc`."""
    service = get_rigetti_qcs_service('9q-square', as_qvm=True, noisy=False)
    assert service._quantum_computer.name == '9q-square-qvm'
test that get_rigetti_qcs_service can initialize a `RigettiQCSService`
    through `pyquil.get_qc`.
cirq-rigetti/cirq_rigetti/service_test.py