cirq_rigetti.circuit_transformers.CircuitTransformer

A type definition for cirq.Circuit to pyquil.Program transformer functions.

Methods

__call__

View source

Transforms a cirq.Circuit to a pyquil.Program`.

Args
circuit The cirq.Circuit the transformer will transform into a pyquil.Program.

Returns
The pyquil.Program and a map of the cirq.Circuit's memory region keys to the pyquil.Program's memory regions.