|  View source on GitHub | 
An executable quantum program.
cirq_google.workflow.QuantumExecutable(
    circuit: cirq.FrozenCircuit,
    measurement: BitstringsMeasurement,
    params: (tuple[TParamPair, ...] | None) = None,
    spec: (ExecutableSpec | None) = None,
    problem_topology: (cirq.NamedTopology | None) = None,
    initial_state: (cirq.ProductState | None) = None
)
This serves a similar purpose to cirq.Circuit with some key differences. First, a quantum
executable contains all the relevant context for execution including parameters as well as
the desired number of repetitions. Second, this object is immutable. Finally, there are
optional fields enabling a higher level of abstraction for certain aspects of the executable.
| Attributes | |
|---|---|
| circuit | A cirq.Circuitdescribing the quantum operations to execute. | 
| measurement | A description of the measurement properties or process. | 
| params | An immutable cirq.ParamResolver(or similar type). It's representation is
normalized to a tuple of key value pairs. | 
| spec | Optional cg.ExecutableSpeccontaining metadata about this executable that is not
used by the quantum runtime, but will be forwarded to all downstream result objects. | 
| problem_topology | Optional cirq.NamedTopologyinstance specifying the topology of the
circuit. This is useful when optimizing on-device layout. If none is provided we
assumecircuitalready has a valid on-device layout. | 
| initial_state | A cirq.ProductStatespecifying the desired initial state before executingcircuit. If not specified, default to the all-zeros state. | 
Methods
__eq__
__eq__(
    other
)
Return self==value.
| Class Variables | |
|---|---|
| initial_state | None | 
| params | None | 
| problem_topology | None | 
| spec | None |