Transform
transform_circuit
transform_circuit(
circuit: Circuit,
to_native_gateset: bool = True,
model: NoiseModel | None = None,
parallelize_circuit: bool = False,
) -> cirq.Circuit
Transform an input circuit into one with the native gateset with noise operations added.
Noise operations will be added to all qubits in circuit.all_qubits(), regardless of whether the output of the circuit optimizers contain all the qubits.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
circuit
|
Circuit
|
The input circuit. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
to_native_gateset |
bool
|
Whether or not to convert the input circuit to one using the native set of gates ( |
model |
NoiseModel
|
The cirq noise model to apply to the circuit. Usually, you want to use one of the ones supplied in this submodule,
such as |
parallelize_circuit |
bool
|
Whether or not to parallelize the circuit as much as possible after it's been converted to the native gateset.
Defaults to |
Returns:
Type | Description |
---|---|
Circuit
|
cirq.Circuit: The resulting noisy circuit. |
Source code in .venv/lib/python3.12/site-packages/bloqade/cirq_utils/noise/transform.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|