cirq_rigetti.circuit_transformers.build

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v1.6.

Cirq-Rigetti is deprecated. For more details or to provide feedback see https://github.com/quantumlib/Cirq/issues/7058

This builds a CircuitTransformer that the client may use over multiple sweeps of cirq.Sweepable.

Args:
    qubits: The qubits defined on the circuit that this function will transform. If None,
        the transformer will pull qubits from the <a href="https://quantumai.google/reference/python/cirq/Circuit"><code>cirq.Circuit</code></a> and order them by
        `cirq.ops.QubitOrder.DEFAULT` on each transformation.
    decompose_operation: A callable that can decompose each individual operation on the
        <a href="https://quantumai.google/reference/python/cirq/Circuit"><code>cirq.Circuit</code></a> before being transformed. This will override the default Quil
        decompositions in cirq. You may optimize your circuit before transformation and pass
        a no-op here.
    qubit_id_map: A map of <a href="https://quantumai.google/reference/python/cirq/Qid"><code>cirq.Qid</code></a> to physical qubit addresses that will end up in
        the executed native Quil.
    post_transformation_hooks: A list of transformation functions you may pass to further
        convert a `pyquil.Program` after transformation.

Returns:
    A `CircuitTransformer` transforming the <a href="https://quantumai.google/reference/python/cirq/Circuit"><code>cirq.Circuit</code></a> s as specified above.