class CompiledStateProbs
- compiled_scalar_graphs[0]: normalization (0 outputs plugged)
- compiled_scalar_graphs[1]: full joint probability (all outputs plugged)
probability_of
state(np.ndarray) — The measurement outcome state to compute probability for.batch_size(int) — Number of error samples to use for estimation.
np.ndarray— Array of probabilities P(state | error_sample) for each error sample.
class SteaneEncoder
diagram
encode_transversally
program_text(str) — The program to encode transversally.
encoding_flow_generators
initialize
program_text(str) — The state preparation program for k qubits. Generally, this should be a simple program that prepares each of the k qubits in a single-qubit state.encoding_program_text(optional) — An encoding circuit for a single logical qubit. This should encode a single logical qubit at inputself.encoding_qubitinto a state of n qubits. If not provided, the encoder will use a noiseless default encoding.
class ColorEncoder5
diagram
encode_transversally
program_text(str) — The program to encode transversally.
encoding_flow_generators
initialize
program_text(str) — The state preparation program for k qubits. Generally, this should be a simple program that prepares each of the k qubits in a single-qubit state.encoding_program_text(optional) — An encoding circuit for a single logical qubit. This should encode a single logical qubit at inputself.encoding_qubitinto a state of n qubits. If not provided, the encoder will use a noiseless default encoding.