Splits moments so that they contain either only acquaintance or permutation gates.
cirq.contrib.acquaintance.rectify_acquaintance_strategy(
circuit: 'cirq.Circuit', acquaint_first: bool = True
) -> None
Orders resulting moments so that the first one is of the same type as the previous one.
Args |
circuit
|
The acquaintance strategy to rectify.
|
acquaint_first
|
Whether to make acquaintance moment first in when
splitting the first mixed moment.
|
Raises |
TypeError
|
If the circuit is not an acquaintance strategy.
|