File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed
cirq-rigetti/cirq_rigetti Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2025 The Cirq Developers
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # https://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ import os
16+
17+
18+ def pytest_configure (config ):
19+ os .environ ['CIRQ_TESTING' ] = "true"
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ import os
1516from typing import (
1617 Any ,
1718 Iterable ,
4950T = TypeVar ("T" )
5051
5152
53+ def pytest_configure (config ):
54+ os .environ ['CIRQ_TESTING' ] = "true"
55+
56+
5257class MockQAM (QAM , Generic [T ]):
5358 _run_count : int
5459 _mock_results : Dict [str , np .ndarray ]
Original file line number Diff line number Diff line change 1+ # Copyright 2025 The Cirq Developers
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # https://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ import os
16+
17+
18+ def pytest_configure (config ):
19+ os .environ ['CIRQ_TESTING' ] = "true"
You can’t perform that action at this time.
0 commit comments