<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<title>QuEST: ComplexMatrix4 Struct Reference</title>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css"/>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="jquery.smartmenus.js"></script>
<script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand"><img alt="Logo" src="logo.png"/></a>
<a class="navbar-brand"><b>QuEST</b> v3.4.0<br>The Quantum Exact Simulation Toolkit</a>
</div>
</div>
</nav>
<div id="top">
<div class="content" id="content">
<div class="container">
<div class="row">
<div class="col-sm-12 panel " style="padding-bottom: 15px;">
<div style="margin-bottom: 15px;">
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-attribs">Data Fields</a> </div>
<div class="headertitle">
<div class="title">ComplexMatrix4 Struct Reference<div class="ingroups"><a class="el" href="group__type.html">Data structures</a></div></div> </div>
</div>
<div class="contents">
<p>Represents a 4x4 matrix of complex numbers.
<a href="structComplexMatrix4.html#details">More...</a></p>
<p><code>#include <<a class="el" href="QuEST_8h_source.html">QuEST.h</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a1f6bb840b5a9e6252980cab7a14f1a35"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__type.html#ga7740e349b4f8bae6451547680f0ce2d6">qreal</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structComplexMatrix4.html#a1f6bb840b5a9e6252980cab7a14f1a35">imag</a> [4][4]</td></tr>
<tr class="separator:a1f6bb840b5a9e6252980cab7a14f1a35"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeadc9893e1b16cdd585dac523e73926c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__type.html#ga7740e349b4f8bae6451547680f0ce2d6">qreal</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structComplexMatrix4.html#aeadc9893e1b16cdd585dac523e73926c">real</a> [4][4]</td></tr>
<tr class="separator:aeadc9893e1b16cdd585dac523e73926c"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents a 4x4 matrix of complex numbers. </p>
<p>In C, a <a class="el" href="structComplexMatrix4.html" title="Represents a 4x4 matrix of complex numbers.">ComplexMatrix4</a> can be initialised by separately specifying the real and imaginary components as nested arrays. Note that in C99, a short row that ends with a 0 with be padded with 0. <br />
For example, </p><div class="fragment"><div class="line"><a class="code" href="structComplexMatrix4.html">ComplexMatrix4</a> m = {</div>
<div class="line"> .<a class="code" href="structComplexMatrix2.html#a3ea98d545b67a190ee6abe936c72076f">real</a> = {{1,2, 3, 4},</div>
<div class="line"> {0},</div>
<div class="line"> {5,6,7,8},</div>
<div class="line"> {0}},</div>
<div class="line"> .imag = {{0},{0},{0},{1,1,1,1}}};</div>
</div><p>specifies matrix </p><p class="formulaDsp">
<img class="formulaDsp" alt="\[ m = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 0 & 0 & 0 & 0 \\ 5 & 6 & 7 & 8 \\ i & i & i & i \end{pmatrix} \]" src="form_1.png"/>
</p>
<dl class="section see"><dt>See also</dt><dd><ul>
<li><a class="el" href="structComplexMatrix2.html" title="Represents a 2x2 matrix of complex numbers.">ComplexMatrix2</a></li>
<li><a class="el" href="group__type.html#ga815103261fb22ea9690e1427571df00e" title="Allocate dynamic memory for a square complex matrix of any size, which can be passed to functions lik...">createComplexMatrixN()</a></li>
</ul>
</dd></dl>
<dl class="section author"><dt>Author</dt><dd>Balint Koczor </dd>
<dd>
Tyson Jones (doc) </dd></dl>
<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00175">175</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a1f6bb840b5a9e6252980cab7a14f1a35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f6bb840b5a9e6252980cab7a14f1a35">◆ </a></span>imag</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__type.html#ga7740e349b4f8bae6451547680f0ce2d6">qreal</a> ComplexMatrix4::imag[4][4]</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00178">178</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="QuEST__cpu_8c_source.html#l01813">statevec_multiControlledTwoQubitUnitaryLocal()</a>, <a class="el" href="QuEST__common_8c_source.html#l00387">statevec_sqrtSwapGate()</a>, and <a class="el" href="QuEST__common_8c_source.html#l00400">statevec_sqrtSwapGateConj()</a>.</p>
</div>
</div>
<a id="aeadc9893e1b16cdd585dac523e73926c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeadc9893e1b16cdd585dac523e73926c">◆ </a></span>real</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__type.html#ga7740e349b4f8bae6451547680f0ce2d6">qreal</a> ComplexMatrix4::real[4][4]</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00177">177</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="QuEST__cpu_8c_source.html#l01813">statevec_multiControlledTwoQubitUnitaryLocal()</a>, <a class="el" href="QuEST__common_8c_source.html#l00387">statevec_sqrtSwapGate()</a>, <a class="el" href="QuEST__common_8c_source.html#l00400">statevec_sqrtSwapGateConj()</a>, and <a class="el" href="test__decoherence_8cpp_source.html#l00720">TEST_CASE()</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="QuEST_8h_source.html">QuEST.h</a></li>
</ul>
</div>
<div class="ttc" id="astructComplexMatrix4_html"><div class="ttname"><a href="structComplexMatrix4.html">ComplexMatrix4</a></div><div class="ttdoc">Represents a 4x4 matrix of complex numbers.</div><div class="ttdef"><b>Definition:</b> <a href="QuEST_8h_source.html#l00175">QuEST.h:175</a></div></div>
<div class="ttc" id="astructComplexMatrix2_html_a3ea98d545b67a190ee6abe936c72076f"><div class="ttname"><a href="structComplexMatrix2.html#a3ea98d545b67a190ee6abe936c72076f">ComplexMatrix2::real</a></div><div class="ttdeci">qreal real[2][2]</div><div class="ttdef"><b>Definition:</b> <a href="QuEST_8h_source.html#l00139">QuEST.h:139</a></div></div>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="boot.js"></script>
</html>