def test_generate_model_circuit_without_seed():
    """Test that a model circuit is randomly generated without a seed."""
    model_circuit = cirq.contrib.quantum_volume.generate_model_circuit(3, 3)

    assert len(model_circuit) == 3
    # Ensure there are no measurement gates.
    assert list(model_circuit.findall_operations_with_gate_type(cirq.MeasurementGate)) == []
Test that a model circuit is randomly generated without a seed.
cirq-core/cirq/contrib/quantum_volume/quantum_volume_test.py