Skip to main content

get_plane_vector

Function get_plane_vector 

Source
pub fn get_plane_vector(z: usize, t: usize, q: usize) -> Vec<usize>
Expand description

Get the plane (layer) vector for a given z

Converts z to base-q representation, giving the z_y value for each y-section. This is used to identify “red” (unpaired) vertices in each layer.

The representation stores most significant digit at index 0:

  • z_vec[0] = coefficient for q^(t-1) (MSB)
  • z_vec[t-1] = coefficient for q^0 (LSB)

§Arguments

  • z - Layer index
  • t - Number of y-sections
  • q - Base (coupling factor)

§Returns

Vector where element y contains the coefficient for q^(t-1-y)